Probably a very simple one......
I have a dataobject which is returning a calendar page
public function calendar($request) {
$page = DataObject::get('SiteTree','"SiteTree"."ID" =' . $this->ID);
return $this->customise(array("resort"=>$page))->renderwith(array('CalendarPage','Page'));
}
I am linking to the calendar as such:
/[region-name]/[resort-name]/calendar/55
Where 55 (in this case) is the ID of a product relating to a resort. I need to get this value (in this case 55) into the data-id of a div in my calendar template as my jQuery calendar uses this to fetch some jSON to display events on a calendar.
How can I do this?
Thanks