Monday 03 May 2004 6:52:12 am
hi, I am trying to implement the agenda V1.0 http://www.ez.no/community/contributions/applications/agenda_v1_0 I am having some trouble getting is to work. it is illustrated by the follwing fetch
{let children=fetch( 'content', 'list_count', hash(
'parent_node_id', 47,
'attribute_filter', array('agenda/date_from', '<=', $selectedday ) ) )}
I want to fetch all instances of the agenda class that have the date_from attribute smaller than the selected date. This date is build using:
selectedday=cond( and(ne($view_parameters.month, ''), ne($view_parameters.day, ''), ne($view_parameters.year, '')), makedate($view_parameters.month, $view_parameters.day, $view_parameters.year), currentdate() )
the page is called using: content/view/full/47/month/5/year/2004/day/3 when i print the data_int from the date_from attribute field of my agenda items, the timestamp looks identical to selectedday, but the fetch count is always 0. Can anybody tell me what is going on. The standard code from agenda V1.0 gives me the same problem, the count is always 0 and therefore the calender never show any links!. thanx for any pointers you can give me!
|