4

I recently tested a new template for a site (University by Shape5). I tried to get a quick preview before setting the template as default by adding ?template=university to the url. But the template was not rendered correctly (no main menu, text-width 100%, no footer etc.). It was not until I assigned the template as default that it was rendered propperly.

So my question is: Is there any difference between how Joomla renders a template when using ?template=myTemplate, as opposed to assigning the template to a menu item (or as default template)?

1 Answer 1

3

My reading of the source is that the template parameter overrides the template name after Joomla has loaded the template settings. So, your university template got the settings for the default template and probably didn't have the correct information to be able to display.

See https://github.com/joomla/joomla-cms/blob/master/libraries/cms/application/site.php#L420

2
  • that's interesting
    – FFrewin
    Commented Jun 9, 2015 at 15:15
  • +1 Very interesting. It seems to happen with many Shape5 templates, haven't seen this problem with other template providers (so far).
    – johanpw
    Commented Jun 9, 2015 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.