I have multiple templates installed on a site. I would like to be able to switch between these templates from the frontend of the website. This is fairly easy to do, there is a joomla module out there that does it. The problem is, clicking on a link will always revert the site back to the default template.
For example, you can append the following to the URL to load a different template:
but when you click on a link, you lose that URL appendix. What can I do to keep the template switched? I imagine it would be adding something to the templateDetails.xml and then some php code to the index.php file. However, the T3 framework makes this kind of modification confusing!
What about appending a ” ?template=XYZ ” argument to every menu URL? Could this be done with some PHP in the template’s index.php file? Question is, using the T3 template, the only thing a template’s index.php file does is redirect to the JAT3 plugin. Also, the actual template XYZ name could be hard coded or take a value from the templateDetails.xml file.
The nicest solution would be to build this function into the cpanel.php feature… but as a quick fix, it should be fairly easy to tell a template to append it’s name to the end of every menu URL.