Share » Forums » Developer » sort by date

sort by date

sort by date

Tuesday 15 November 2005 5:19:55 am - 4 replies

Author Message

Gurudutt Verma

Tuesday 15 November 2005 6:23:30 am

Hi

This is very well explain here
http://ez.no/products/ez_publish_cms/documentation/reference/data_fetching/content/list

also see Example 4 and Example 5 in the above link.

Mazen Alsibai

Tuesday 15 November 2005 7:14:35 am

the attribute name is creation,
will it be sort_by,array(array( creation, false() ) ?

Gurudutt Verma

Tuesday 15 November 2005 7:40:38 am

Hi!

You want to sort by attribute so that should be like

'sort_by',array( 'attribute',false(),100 )
here 100 is attribute_id of creation see the class definition for that.

Also you can use the identifier of the class and the attribute like

'sort_by',array( 'attribute',false(),'yourclassname/creation' )

Mazen Alsibai

Tuesday 15 November 2005 8:07:49 am

many many thanks

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu