Forums / Setup & design / URL variables with Agenda contribution

URL variables with Agenda contribution

Author Message

James Ward

Thursday 20 May 2004 9:00:18 am

I feel bad loading up the contribution comments with these questions so I'm moving it to this forum. I am trying to get the Agenda contribution
( http://www.ez.no/community/contributions/applications/agenda_v1_0 )
working but am having no luck reading variables from the url.

The url is:
http://www.mysite.com/index.php/en/content/view/full/47/day/18/month/5/year/2004

and I would like to extract the date information from it. Here is the code which I am currently using:

{let temp_ts=makedate( $view_parameters.month, $view_parameters.day, $view_pa
rameters.year )
events=fetch( 'content', 'list', hash( 'parent_node_id', 47,
'attribute_filter',
array( 'and',
array( 'event/date_from', '<=', $temp_ts
),
array( 'event/date_to', '>=', $temp_ts )
) ) ) }
Events scheduled for: {$temp_ts}
{/let}

The temp_ts variable never has a value. Am I missing something here?

Thanks in advance.

working at www.wardnet.com
blogging at www.jamesward.ca