Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » ChameleonLite
- » change template to all site pages if...
change template to all site pages if I click something
change template to all site pages if I click something
Hi, I would be able to put simple links that capable to switch the current template to another and make it default for all pages.
So for example I have three link "template1" "template2" "template3", then (wherever I am on the website) I click to template2 and from now on the site look will be styled for all the pages by the template2.
How is my english?!?! hope good enough
Re: change template to all site pages if I click something
Hi raganello,
There's a video about how to do this with Chameleon on the videos page. (Actually it was done when Chameleon was named MetaTemplate Pro, but it works just the same now).
Because the video is about the paid version it's a little different to the free version.
For the free version, you don't have a control for entering the URI of the current page.
But it's easy to do in the PHP box in the left column of the page. Follow all the instructions on the screencast video, except instead of using the form control for entering the URI, enter the following into the PHP box at the bottom of the left column:
if ($core_genius->check("uri contains template1")) return true;
(you'll need to put a variation of that into each rule that needs it, containing the relevant template name).
Hope that helps,
Stephen
- Index
- » Chameleon / ChameleonLite
- » ChameleonLite
- » change template to all site pages if...
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8026
- Newest User:
- rivas48750
- Members Online:
- 0
- Guests Online:
- 186
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked