tmpl=component hides event register buttons on event detail page

  • Arbind Bhagat
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
20 hours 22 minutes ago #178081 by Arbind Bhagat
Hi,I found an issue with Event Booking when an event detail page is opened using tmpl=component.On the normal event detail page, the register buttons display correctly. But when the same event is opened with tmpl=component, the register button block disappears, even though the event is still open for registration.I investigated the event template and found that registration itself is still available. In the runtime data:
  • can_register = 1
  • register_buttons_position = 0
  • show_back_button = 1
But at the same time:
  • showTaskBar = 0
Because showTaskBar becomes 0, the component does not build or render the register button section at all. So the problem is not that the event cannot be registered for. The problem is that the toolbar/taskbar is being disabled in component mode.In my testing, once I forced the taskbar logic to still run for tmpl=component, the register buttons appeared correctly again.So it seems the root issue is that tmpl=component makes showTaskBar false somewhere upstream, which prevents:
  • the register buttons from being generated
  • the register button block from being shown
It would be great if this could be fixed in the core component, because tmpl=component is very useful for:
  • mobile app event detail screens
  • modal displays
  • embedded event detail views
  • simplified page layouts
In those cases, users should still be able to register if the event is open for registration.Could you please review this behavior and make sure register buttons can still render in tmpl=component mode when registration is available?Thanks.

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

More
15 hours 37 minutes ago #178083 by Tuan Pham Ngoc
Hi

That's on purpose. The popup is used for displaying event information only. We do not want the registration to be enabled and continuing on that popup

If you want that behavior, please implement an override for event details page

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc