alpha sorting in Metapublisher (newbie)
Hello all, I know this must be an easy thing but I've looked everywhere and can't find the answer so I hope you can help. I use Metapublisher to display a list of records which the user can click to go to a detail/edit page. I want to be able to display the records alphabetically by organization name. Here's my current code: <dtml-in entryIds> <tr> <td><dtml-var "mp_entries.getEntryField(_['sequence-item'], 'org')"
</td> <td><dtml-var "mp_entries.getEntryField(_['sequence-item'], 'name')" </td>
<td><a href="edit_html?key=<dtml-var sequence-item>">Edit</a></td> <td><a href="delEntry?action=<dtml-var URL url_quote>&key=<dtml-var sequence-item>">Delete</a></td> </tr></dtml-in> Much thanks in advance for any assistance, Rebecca __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com
Rebecca Elder writes:
... I use Metapublisher to display a list of records which the user can click to go to a detail/edit page. I want to be able to display the records alphabetically by organization name.
Here's my current code:
<dtml-in entryIds> Maybe, MetaPublisher has also an "entryValues" method.
Then you could use: <dtml-in entryValues sort=org> your "sequence-item" would then be the actual value not its id, of course. Dieter
participants (2)
-
Dieter Maurer -
Rebecca Elder