Friday 07 November 2003 1:12:24 am
If my understanding is correct, you have a tree structure like this:
articles
-- category 1
---- article 1
---- article 2
-- category 2
---- article 3 ---- article 4 Template example of how to fetch the five newest articles:
{let articles=fetch( content, tree, hash( parent_node_id, NODE_ID,
sort_by,array( published, false() ),
limit, 5,
class_filter_type, include, class_filter_array, array( 'article' ) ) )}
{section name=Child loop=$articles}
{node_view_gui view='line' content_node=$:item} {/section} {/let} Replace NODE_ID with the node id to the article folder. See also http://ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/operators/data_fetch and http://ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/fetch_function_examples for more documentation on the fetch function.
Senior Software Engineer - Vision with Technology
http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh
eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578
|