Monday 22 August 2005 4:55:49 am
OK I have searcheed the forums high and low and cannot nail down a solution to my dilemma, so I hope some of you developers can help me. Here goes. In the layout of a site I am building I have content split over 2 columns left and right. module result is currently located in the left column but I want to 'continue' the result (after so many articles) into the right column. This in itself is easy by using offset in the fetch of the second column and setting a limit to what I want in the first column. However, this amount and the other parameters (i.e sort_by, etc.) will be different for each page. Rather than creating an override for every page I want to set an integer or value by adding an extra element to the folder class and have that integer used when that folder class is displayed. NOw I am not a programmer so excuse my crude code below but I think it will give a good idea of what I am trying to do: Folder has an Integer for 'limit', and 'offset' and a text line for class_filter_type and sort_by
{let $var_limit=$node.object.data_map.limit
$var_offset=$node.object.data_map.offset}
{let children=fetch( content, list, hash( parent_node_id, $node.node_id,
sort_by, $node.sort_array,
offset, $var_offset,
limit, $var_limit, ) )}
{section name=Child loop=$children}
{node_view_gui view=line content_node=$Child:item}
{/section}
{/let}
{/let}
so the attribute is read and defined as the variable in 'let' then the variable is called by the fetch. In the example above only the values for limit and offset. What is wrong? I am missing some logic somewhere so any advice would be greatly appreciated.
Thanks Matthew
|