Forums / Developer / selection in fetch" function / Comment40051
Alex Jones
Thursday 04 March 2004 7:57:35 am
Yes you can use a <i>class_filter</i> to ensure you only fetch objects of the class (datatype) you want. For example, I have a fetch that only pulls objects of an image class (which happens to be id '5') from a specific folder (which has an id of '522'):
SiteTitleHeader=fetch(content,tree,hash(parent_node_id,522,class_filter_type,include,class_filter_array, array(5)))
Check out the documentation for fetch: http://ez.no/ez_publish/documentation/development/libraries/ez_template/operators/data_fetchhttp://www.ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/fetch_function_examples
There is also a lot of information in the forums and the site as a whole, so a search should provide you with a wealth of data and examples.
Alex
Alex [ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ] <i>When in doubt, clear the cache.</i>