Monday 19 April 2004 8:15:43 am
I have a calendar which prints out events on a page of class id 8. The events comes with date, title and description, like this: "Date: 2004, 03.05", Title: Mac design, Description: bla bla bla.. I want to make the page look like this with sorting by months:
Mars "Date: 2004, 03.05", Title: Mac design, Description: bla bla bla..
May "Date: 2004, 05.05", Title: eZ design, Description: bla bla bla..
BUT the question is when I add case match for 01 which is January in the line_class_8.tpl I get a loop for the monthname..I only want the name of the month to print only once. Tried to set a variable in the template to check when the monthname is printed once, but won't help :( I have a pagelayout with:
{section name=Child loop=sort($child_list)}
<tr>
<td valign="top">
{node_view_gui view=line content_node=$Center:Child:item}
</td>
</tr>{/section}
Child:item uses line_class_8.tpl for viewing..with the code:
{switch match=$node.object.data_map.from_date.content.timestamp|datetime(custom,"
%m")}
{case match="01"}
{section show=ne($val,2)}
{let val=2}
{section show=eq($val,2)}
January
{/section}{/let}{/section}{/case}
I tried to make something with the section..val etc., but it's printing out January for every events..I only want January to appear only once. I wanna know how is it possible to write this in the ez template:
{if not eq($bol,1)
let bol=1}
{section show=eq($bol,1)}
January{/section}
|