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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

How to sort by field on published site


Go to End


1619 Views

Avatar
RobertM

Community Member, 26 Posts

3 September 2008 at 12:51am

Edited: 03/09/2008 12:52am

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 BooksHolder.ss file and would a function be needed in BooksHolder.php?