Forums / Setup & design / Objectrelationlist and attribute filter
laurent le cadet
Monday 15 October 2007 10:16:58 am
Is this correct?
{section show=$attribute.content.relation_list} {section var=Relations loop=$attribute.content.relation_list sequence=array( bglight, bgdark )} {content_view_gui view=embed content_object=fetch( content, object, hash( object_id, $Relations.item.contentobject_id, object_version, $Relations.item.contentobject_version, 'attribute_filter' , array( array( 'product/new', '=', 1 ) ) ) )} {/section} {section-else} {'There are no related objects.'|i18n( 'design/standard/content/datatype' )} {/section}
Where "new" in "product" class is a checkbox...Noway to make something with that piece of code :(
Regards.
Laurent
André R.
Monday 15 October 2007 12:24:32 pm
if you take a look in the doc:http://ez.no/doc/ez_publish/technical_manual/3_10/reference/modules/content/fetch_functions/object
you will see that just as content/node, content/object don't support any filtering or sorting (since they are ment to fetch 1 item).
So you'll have to filter in a different way..
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom