« Return to Thread: preferredUrl usage

preferredUrl usage

by Leon Smith :: Rate this Message:

Reply to Author | View in Thread

I have only been using AIDA for two days so please forgive me if this a really stupid question. I have a simple site working following the tutorial, but using different domain objects; ContestSite and Contests. Both have App objects with view methods. The ContestSite lists contests in a tabular format with links to the underlying Contest object.

I am trying to use preferredUrl to create nice links like this:

preferedUrl
| aTitle |
        aTitle := self title trimBlanks.
        aTitle := aTitle copyReplaceAll: ' ' with: '-'.

        ^'/contest/',  aTitle, '.html'

My problem is that my method seems to never get sent. I have stopped and restarted the server, removed and re-added the site, put halts in the method and tried implementing the method on both the App and the model object, but nothing works. Am I supposed to send this message explicitly in ContestSite's viewMain ?

Thanks in advance for any help.

 « Return to Thread: preferredUrl usage