I created menu item with a type 'event details' and I associate some modules to it.
When I click at event on menu item, the registration goes ok, with the same modules associated.
When I click direct on registration link from a timeline view, i have an issue experience. The correct id is not associated to a link and associated modules, of course, are not there.
I Solved it with this, starting at line 229, after "if ($canRegister) {" from events_timeline.php on template override view:
Code:
// START HERE
$menu=JFactory::getApplication()->getMenu();
//locating menu item id with current event id.
$getItemidEventRegistration = $menu->getItems('link','index.php?option=com_eventbooking&view=event&id='.$event->id,true);
//getting Menu Item ID
$ItemidEventRegistration=$getItemidEventRegistration->id;
// $ItemidR is a new $Itemid exclusive for registration links and needs to be changed after this lines.
if($ItemidEventRegistration){
$ItemidR=$getItemidEventRegistration->id;
}
else {
$ItemidR=$Itemid;
}
//ENDS HERE
In this view, It´s ok for me now!
I hope i helped someone