Friday 25 July 2008 1:57:45 am
Thanks for trying,
but it give me the same result... nothing. And if I suppress 'attribute_filter', array(array( 'product/support', '=', $view_parameters.profil))
It give me all products like with 'list'
I mix the examples from http://ez.no/doc/ez_publish/technical_manual/3_9/reference/modules/content/fetch_functions/list Example 10
{fetch( 'content', 'list',
hash( 'parent_node_id', 42,
'attribute_filter', array( 'or',
array( 152, '=', 'abc' ),
array( 153, '=', '42' ) ) ) )}
This example demonstrates how to do attribute filtering. Only nodes that have attributes number 152 and 153 set to "abc" and 42 respectively will be included in the result. Example 11
{fetch( 'content',
'list',
hash( 'parent_node_id', 42,
'attribute_filter', array( array( 'article/title',
'like',
'*story*' ) ) ) )}
This example demonstrates how to do attribute filtering. Instead of specifying the ID number of the attribute (as in the previous example), the identifier of the class and the attribute is used. Only article nodes that contain the text "story" in their title attribute will be included in the result. Thank's for someone who have a answer to this.
|