Friday 06 April 2007 2:56:42 am
Hi! There are many ways of sorting nodes in eZ Publish. I have the following question I have not found an anwer to: I have a folder with nodes of the same class contain data. I can use the following code to sort them:
{fetch( 'content', 'list', hash( 'parent_node_id', 42,
'sort_by', array( 'attribute',
false(),
'data_name' ) ) )}
My first question is: in whcih file should I put this code? In the folder.tpl-file? My second questions is: is it possible to make the above code into a hyperlink so that users can choose how to sort by clicking on a link on my page?
Thank you, Jens
|