Forums / Setup & design / question about section & delimiter !
Selmah Maxim
Monday 05 May 2003 8:16:42 am
hi ..
why delimiter want work in section tag with term ?
________________ The Code _________________
{let category=fetch('content',list,hash(parent_node_id,$node.node_id))}
<table border='0' bgcolor=#cccccc celspace=1> <tr> {section name=Main loop=$category } {section show=eq($Main:item.data_map.category_state.data_int,"1")} <td bgcolor=#efefef> {$Main:item.node_id} {node_view_gui view=line content_node=$Main:item} <br>{$Main:item.data_map.category_state.data_int}</<br> {let Sub_List=fetch(content,list,hash(parent_node_id,$Main:item.node_id,sort_by,array(array(priority))))} {section name=Subs loop=$Main:Sub_List } <a class="small" href={concat("/content/view/sub/",$Main:Subs:item.node_id,"/")|ezurl}>{$Main:Subs:item.name|wash}</a> {/section} {/let} </td> {delimiter modulo=2} </tr> <tr> {/delimiter} {/section} {/section} </tr> </table> {/let}________________________
without ($Main:item.data_map.category_state.data_int,"1")} will list the categories in to <tr> something like this : +--------------------+--------------------+ | | | +--------------------+--------------------+ | | |+--------------------+--------------------+
but want work !
whay, any idea ?
thx for help :)