Event Registration connected to event at menu item

  • Fabiano
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 months ago - 9 years 5 months ago #88413 by Fabiano
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
Last edit: 9 years 5 months ago by Fabiano.
The following user(s) said Thank You: Tuan Pham Ngoc

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc