Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

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 smile

raganello
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: change template to all site pages if I click something

hi stephen,

quite an explanation.

it's seem easy i'll give it a try.

thanks!

raganello
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5940
Total Posts Today:
1
User Info:
 
Total Users:
5186
Newest User:
Totosite
Members Online:
0
Guests Online:
171

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