Wednesday 18 January 2006 6:48:51 am
In my folder object I display the children three per line. I would like to display a differet stylesheet for the three objects on each line.
First one should have class: childrenLeft
Second one should have class: childrenMid Third one should have class: childrenRight
Fourth one (on the next line) should then again have class: childrenLeft and so on.. How can I get this sorted?
This part of my full folder override template looks like this: (just like the standard right-out-of-the-box template)
- - - - -
{set list_items=fetch_alias( children, hash( parent_node_id, $node.node_id,
offset, $view_parameters.offset,
sort_by, $node.sort_array,
class_filter_type, "include",
class_filter_array, array(2),
limit, $page_limit ) )}
{set list_count=fetch_alias( children_count, hash( parent_node_id, $node.node_id ) )}
{/section}
<div class="content-view-children">
{section var=child loop=$list_items sequence=array(bglight,bgdark)}
{node_view_gui view=line content_node=$child}
{/section}
</div>
- - - - -
<i>ezpublish version 3.6.4</i>
|