Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

How to sort by field on published site




3 September 2008 at 12:51am (Last edited: 3 September 2008 12:52am), Community Member, 26 Posts

Suppose we have a holder page BooksHolder, that displays certain fields from BooksPage - how can we in the template allow the site user to reorder the list of books in the holder eg. order by author or price - perhaps by hyperlink or dropdown? How would this be implemented in the file and would a function be needed in BooksHolder.php?