Thursday 29 September 2005 3:08:33 am
Heya all ez.no visitors! ;) I'm trying to fetch all the content objects of type 'id_rfc' with parent_node '421' and with data_map.rfcstatus.value[0]=$myvalue; The rfcstatus is a dropdown attribute. Here's my template code.Note: this works, but this is unclean code, I want to filter on fetching! Anyone here?
{let listRFC=fetch( 'content', 'list', hash( 'parent_node_id', 421,
'class_filter_type', 'include',
'class_filter_array', array( 'id_rfc' ) ) )}
{foreach $listRFC as $RFC}
{section show=eq($RFC.data_map.rfcstatus.value[0],$filter)}
{$RFC.name}<br/>
{/section}
{/foreach}
Thanks! Clemens
|