Forums / Developer / sortin by class_id

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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