How to pass ID value to Calendar
Posted: Sun Mar 23, 2008 10:04 am
This is the flow: event list > event detail > event reserve
To start this I've made a copy (to test) of funtion.displayevent.php and called it function.reserveevent.php. This calls a calendar template called reserve_event. I've used this file because it has all the data I need.
Then I've got a simple link with the id of the event in the detail which then goes to a page template called reserve which calls the calendar like this {cms_module module="Calendar" display='reserve_event'}
The flow of it all works but using {debug} in 'reserve_event' template I see all the event info but I always see the same ID. So how can I pass the ID of the event to 'reserve_event' .
It seems it's the part from the detail page to the reserve page thats all screwy!
I'm getting there but if anyones got any advice on how to pass an id to the reserve_event template I'd appriciate it.
Sarah
To start this I've made a copy (to test) of funtion.displayevent.php and called it function.reserveevent.php. This calls a calendar template called reserve_event. I've used this file because it has all the data I need.
Then I've got a simple link with the id of the event in the detail which then goes to a page template called reserve which calls the calendar like this {cms_module module="Calendar" display='reserve_event'}
The flow of it all works but using {debug} in 'reserve_event' template I see all the event info but I always see the same ID. So how can I pass the ID of the event to 'reserve_event' .
It seems it's the part from the detail page to the reserve page thats all screwy!
I'm getting there but if anyones got any advice on how to pass an id to the reserve_event template I'd appriciate it.
Sarah