Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi!

How can I define the order of the pages?

Situation: I have a portfolio, with 3 folders and a lot of pages (works) in each folder. How can I define the order of this works?

Thanks
Hi,

Pages can be sorted by the following parameters (vide - http://www.couchcms.com/docs/tags-reference/pages.html) -
* publish_date (default)
* page_name
* page_title
* modification_date
* comments_count
Apart from the above system fields, any custom field (i.e. editable region) you have can also be used to order the pages.

So in your case, if date doesn't happen to be of any relevance to portfolio items, you can tweak the publish date to set the order of display.
Or you can create a editable region (type=text search_type=integer) and give every page a number that will dictate its sorting.

Please let me know if this helps.
Thanks KK! I solved using the tweak of publish date, like you said.

But the editable region is a good solution too, I will think about it for the future!

thanks!
Great! Thank you for posting back and letting us know.
4 posts Page 1 of 1
cron