John Mina
|
Tuesday 27 April 2004 3:29:36 am
HI Bruce ,
Thaks for the reply but Unfortunatly wht i wanted to ask about is the other side of the process, how to connect a page and make it able to use this tpl
I see there is aform that is made and a lot fo other variables, but i dn't know wht is important and wht is not
iam relaly lost, have you got any idea bout that ? Sicnerely John Mina
|
Bjørn Kaarstein
|
Tuesday 27 April 2004 3:42:45 am
This is a sample from the ez-course I attended which works fine. It fetches three items at a time, and then applies the google navigator if there are more than three items.
let objectCount=fetch('content','list_count', hash(parent_node_id, $node.node_id,
'class_filter_type', include,
'class_filter_array', array(2,8)))}
{section loop=fetch('content', 'list', hash('parent_node_id', $node.node_id,
'limit',3,
'offset',$view_parameters.offset,
'sort_by',$node.sort_array,
'class_filter_type', include,
'class_filter_array', array(2,8)))}
{node_view_gui view=element content_node=$:item}
<br />
{/section}
{include uri='design:navigator/google.tpl'
item_count=$objectCount
view_parameters=$view_parameters
item_limit=3
page_uri=concat('/content/view/full/', $node.node_id)}
Regards Bjørn
|