Forum OpenACS Q&A: How to order pages in categories includelet?

I am trying to set the categories includelet to return the pages in a pre-determined order.

I have created two xowiki::Formpage objects, one called 'en:home' and one called 'en:mypage'. I need them to appear like this:

home | mypage

instead of like this as at present:

mypage | home

I have tried:

{{categories -decoration none -order_items_by section, asc}}

but this returns an unknown fieldname error upon rendering.

Is there a way to do this without resorting to hacking the living daylights out of the includelet SQL?

Richard

Collapse
Posted by Gustaf Neumann on
Use: {{... -order_items_by page_order,asc}}
Collapse
Posted by Richard Hamilton on
Thank you very much for the swift reply Gustaf, I have literally seconds ago discovered the page_order field in the xowiki_page table.

Fresh eyes in the morning! 😊

Regards
Richard