| Tuesday 15 November 2005 1:47:14 pm 
                                                                
                                                                 
Im working on a agenda list and got some problems sorting and listing the right stuff. The agenda class consists of name, date and content.
 This is the code ive got together listing it
 
{def $timestamp=currentdate()}
{def $idag=fetch('content','list', hash('parent_node_id', 308,
							attribute_filter, array( and, array( 296, '>=', $timestamp ) ),
							 'sort_by',array( 'attribute',true(),296 ) 
				))}			
{foreach $idag as $dagens}
	{node_view_gui content_node=$dagens view='agenda'}
{/foreach}
This functions for listing... but it skips the today agenda and jumps to the next day instead.My next problem is that i want the list to list the items like this:
 Todays agenda:
 - Agenda 1
 - Agenda 2
 Wednesday 16. November
 - Agenda 1
 - Agenda 2
 etc...
 The code i use today for showing are this.
 
<b>{$node.object.data_map.dato.data_int|l10n( 'date' )}</b>
<a href={$node.url_alias|ezurl}>{$node.object.data_map.hendelse.content|wash}</a
Any suggestions? --------------------------------------------Høgskolen i Lillehammer
 Lillehammer University College
 http://www.hil.no
 --------------------------------------------
 Messenlien IT
 http://messenlien.com
 -------------------------------------------
 |