asdsad asdsadsa
|
Friday 27 August 2004 5:29:30 am
I made a custom class(MyMediaClass) and there is some attributes inside it. One of the attribute is Media with id:336 A want to fetch folder (in this folder there is only entrys with class "MyMediaClass") and get only the entrys wich content a video (video attribute is not required, so user can leave it blank). Actually i have no idea what to put instead of "????" symbols here:
{let test=fetch(content,
list,
hash(parent_node_id,440,
sort_by,array(published,false()),
class_filter_type,include,
class_filter_array,array('MyMediaClass'),
attribute_filter,array('and', array('336','=','?????'))
)
)
}
10x in advance and sorry for my english.
|
Paul Borgermans
|
Friday 27 August 2004 5:40:30 am
You cannot filer on that in the attribuet filter, btu should check this in a loop of the returned objects.
{section show=$test.object.data_map.<mediafile identifier>.has_content}
{* display soemthing *} {/section} hth -paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|