Tuesday 10 May 2005 8:10:42 am
Dear eZ-crew, I think I'll become mad today.... I'm using the following code:
{let redaktions_items=fetch( 'content','list',
hash( 'parent_node_id', $node.node_id,
'class_filter_type', 'include',
'class_filter_array', array( 'redakt_item' ),
'attribute_filter_array', array( 'and', array( 'redakt_item/status', '=', '1' ) ),
'sort_by', array( 'priority', false() ) ))
}
{section var=redakt_item loop=$redaktions_items}
{$redakt_item.name}:{$redakt_item.data_map.status.data_text}<br />
{/section}
Output:
--------
live/ on Tour:1
live/ on Screen:1
live/ on Air:1
live Kreuzfahrt:1
overview Termine:1
Galerie/ Unterwegs:1
<b>Booking:3</b> Red/ Kartenservice:1 Why is Booking still there?
I'm using similar fetch (include only special class + attribute_filter) in other templates - and it is working fine.
Seperately it is working fine in this template:
include only redakt_items - all redakt_items appear, attribute_filter on array( 'redakt_item/status', '=', '1' ) - Booking disappears, but of course the other classes will be displayed too... status is an ezselection with single choice.
I'm using 3.5.2 (just upgraded from 3.5.1, hoping the problem might disappear...) on Mac OX 10.3 with mysql 4.0.20 Any hints are very welcome.... Greetings Christiane
|