sortin by class_id

Author Message

Pablo C. Vergara Castro

Thursday 12 August 2004 7:11:08 am

Some of you can say to me how can I doing a fetch that sort by class_id or class_name?

Bård Farstad

Thursday 12 August 2004 7:44:30 am

You can do something like the code below.

{section var=node loop=fetch( 'content', 'list', 
                            hash( 'parent_node_id', 42,
                                  'sort_by', array( 'class_name', false() ) ) )}

{$node.name}
{/section}

You will find more information about this in the documentation page:
http://ez.no/ez_publish/documentation/reference/data_fetching/content/list

--bård

Documentation: http://ez.no/doc

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