Friday 18 August 2006 3:03:47 am
Just as documentation of "node_view_gui" says, I can pass user parameters to template. However this code don't work. Why? Template 1
...
{foreach $list_items as $child sequence=array( 'bglight', 'bgdark') as $style}
{node_view_gui view=line content_node=$child style=$style}
{/foreach}
....
Template 2 (line view)
...
<div class="content-view-line {$style}">
...
In this template <i>$style</i> is empty, because in browser I get:
...
<div class="content-view-line ">
...
Thanks in advance Adolfo Barragán
|