Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Alternate layouts

  • Joshua Vines
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #96511 by Joshua Vines
Alternate layouts was created by Joshua Vines
Attempting to create an alternate layout as per docs.joomla.org/Layout_Overrides_in_Joom...ternative_Menu_Items but am met with "0 Layout Path Not Found". (Specifically looking to create an alternative Category Table layout to be used for specific categories.)
From the link field of __menu table:
Code:
index.php?option=com_eventbooking&view=category&layout=template_name:tablealt&id=4
For debugging, changed line 215 of localhost\administrator\components\com_eventbooking\libraries\rad\view\html.php to
Code:
throw new RuntimeException($this->getLayout().' Layout Path Not Found');
Result is
Code:
0 template_nametablealt Layout Path Not Found
Please help.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 6 months ago #96540 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Alternate layouts
Hello Joshua

Look like Events Booking doesn't support this option at the moment, sorry

So instead of creating a new layout, I guess the easiest way would be customizing one of existing layout. The extension supports template override, so the change won't be lost when you update to future releases of Events Booking

Regards,

Tuan

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

  • Joshua Vines
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #96572 by Joshua Vines
Replied by Joshua Vines on topic Alternate layouts
Using template overrides won't work. Template overrides affect every occurrence of the layout. I need different layouts for different categories, especially in language translation. E.g. in a category of classes you pay tuition, while in a category of plays you purchase tickets.

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

More
9 years 6 months ago - 9 years 6 months ago #96576 by James Riley
Replied by James Riley on topic Alternate layouts
You could create a "switch" PHP script that could automatically include() the proper alternate layout file based on what the category id is.

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Last edit: 9 years 6 months ago by James Riley.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 6 months ago #96590 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Alternate layouts
Honestly, I didn't know that Joomla support that alternate layout feature, so Events Booking doesn't support it yet (we use our own MVC implement to speed up extensions development)

I will look at that feature. If it is really useful, I will implement support for it in version 2.15.0

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc