Sort by attribute in several classes

Sort by attribute in several classes

Monday 12 January 2004 11:56:05 am - 2 replies

Modified on Monday 12 January 2004 11:57:22 am by Anders F

Author Message

James Packham

Tuesday 13 January 2004 4:08:52 am

Have you tried using a section to prepend/append one array to the other, then fetch and sort the contents? That's how I'd go about it. If I don't make much sense look at http://www.ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/operators/array_handling
and play with different ways of using the operators.

Regards,

~James~

Sujit Sth

Tuesday 04 January 2011 9:04:42 pm

Hi Andres,

Yes you can sort by class attribute. See the example below.

{def $rss=fetch('content','list', hash('parent_node_id',77, limit,6, sort_by, array( 'attribute', false(), 'rss_import/pubdate')))}

Here

rss_import -> class identifier
pubdate -> attribute identifier

for detail visit link

http://blog.developeronhire.com/index.php?s=sort

happy sorting

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.