Share » Forums » Setup & design » Folder - show three children per line...

Folder - show three children per line with different css?

Folder - show three children per line with different css?

Wednesday 18 January 2006 6:48:51 am - 2 replies

Modified on Wednesday 18 January 2006 6:51:09 am by Osichr Hayez

Author Message

Esteban Rodriguez

Wednesday 18 January 2006 7:19:58 am

I guess the simplest way would be to use the sequence parameter to have the loop alternate between the 3 classes you want

<div class="content-view-children">
{section var=child loop=$list_items sequence=array( ChildLeft , ChildMid , ChildRight )}
   <div class="$child.sequence">
      {node_view_gui view=line content_node=$child}
   </div>
{/section}
</div>

or maybe you could pass the value of $child.sequence as a parameter to the child's line template (and use it there to add a class to some existing div) to avoid cluttering your html with further markup.

hope it helps

I have great faith in fools; self-confidence my friends call it.

http://presencia.net

Osichr Hayez

Wednesday 18 January 2006 11:54:06 pm

Thanks to you my day started with a big smile! Now I understand what the sequence parameter is all about : )

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu