Fetching by Priority

Fetching by Priority

Tuesday 18 January 2005 7:24:32 pm - 3 replies

Author Message

Eivind Marienborg

Tuesday 18 January 2005 11:41:41 pm

See the examples here: http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/operators/data_fetch

You have to include the sort_by in some way.

Balazs Halasy

Wednesday 19 January 2005 12:13:22 am

Try this:

{set news=fetch( content, list, hash( parent_node_id, $news_node, 
                                      sort_by, array( priority, true ),
                                      offset, $offset,
                                      limit, $limit ) ) }

..and the next time, look up the documentation for this fetch function:
http://ez.no/ez_publish/documentation/reference/data_fetching/content/list

Arran Price

Wednesday 19 January 2005 11:02:21 am

thanks Balazs,
that did the trick.
to note I did spend considerable time in the documentation before posting and must have had the syntax nearly correct in my attempts (my not posting the sort_by code which I had been working on was a copy paste error). Figuring out the exact syntax for the templates has been one of the more frustrating things I have encountered so far with ezpublish.

Oh well I am a beginner with this so am sure will sort it out.

thanks again

Arran

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.