Friday 30 January 2009 10:29:40 am
I extended the article class by adding the attribute 'possition' (datatype: select). I did this because I have to define in which of three columns the created object should be placed. in my design template i have to examine whether there is an article which I have to place in column1. therefore i use this code
{def $contlist = fetch('content',
'list_count',
hash('parent_node_id', 2,
'class_filter_type', 'include',
'class_filter_array', array('article_standard'),
'attribute_filter', array(
array('article_standard/position','=','column1'),
)
)
)
}
Although I have placed an article of the class 'article_standard' under the parent node 2 into Column1, the output of $contlist is 0. Leaving the attribute filter away:
{def $contlist = fetch('content',
'list_count',
hash('parent_node_id', 2,
'class_filter_type', 'include',
'class_filter_array', array('article_standard'),
)
)
}
In this case code results the expected 1. What is my mistake? ciao Olli
|