Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Greetings! Further to this posting http://www.couchcms.com/forum/viewtopic.php?f=4&t=7408 - I have successfully set up a work portfolio page with filters for work categories using KK's solution. I am now wondering how to order the filtered results listing pages - which have been created using the reverse_related_pages tag. They are appearing in page title order and the parameters appear to be limited to 'field' and 'masterpage'. It would be great if I can get them into page date order ... is this at all possible?
Hi Potato,
..the parameters appear to be limited to 'field' and 'masterpage'

Not at all!. ALL the parameters of your trusty cms:pages tag (http://www.couchcms.com/docs/tags-reference/pages.html) are available for use with cms:related_pages and cms:reverse_related_pages tags.

The following should sort the listed pages in descending order of their publish dates -
<cms:reverse_related_pages 'work_category' masterpage='work.php' orderby='publish_date' order='desc'>
...
</cms:reverse_related_pages>

Hope this helps. Do let us know.
Thanks.
thanks ... (that turned out to be a silly question - I should have worked it out for myself :roll: - sorry!)
3 posts Page 1 of 1
cron