Forums / Setup & design / Sorting articles

Sorting articles

Author Message

Kenneth Grande

Tuesday 03 July 2007 7:21:02 am

Hi,

When publishing articles in a folder they are by default sorted so that the oldest article is showed first, and the newest last. i would like to change this so it is the other way around.

I tried to change the default sort order of the sub elements of the folder class (and the article class) but nothing is changed. I also empty the cache before i refresh the page.

Frédéric DAVID

Tuesday 03 July 2007 8:50:31 am

To sort objects, you can use the function fetch list.

http://ez.no/doc/ez_publish/technical_manual/3_9/reference/modules/content/fetch_functions/list

To change this, you have to use the sort_by.

The default sort order of the sub elements of the folder class bug sometimes. I don't find a way to work everytime.

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata