juliopontes / joomla-override

Plugin to Override Joomla Extensions (Modules and Components)
19 stars 17 forks source link

Menu-specific template loads correctly. #14

Closed haydenyoung closed 10 years ago

haydenyoung commented 10 years ago

Solution to menu-specific template not being loaded when joomla override plugin is enabled.

It appears that the menu-specific template is not available until onAfterRoute is triggered (onAfterInitialise results in the default template name being returned even though a different template has been defined in the menu item assignment).

Most probably results from the client request not being available until onAfterRoute is fired; i.e. what the user has requested (itemId) has not been made available to the getTemplate method therefore it falls back to the default template.

juliopontes commented 10 years ago

Thanks

haydenyoung commented 10 years ago

Np. Great plugin.