Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Change template depending on session...
Change template depending on session theme.
Change template depending on session theme.
Hi I have two theme's
One is template=themetextonly and one is a templete=graphicstheme.
I use the following rules
1. if (JRequest::getVar("template") == "themetextonly") return true;
Set Session A
2. Grab Session A and apply themetextonly
This works great until i want to swap back to the graphics theme using a link index.php?template=graphicstheme
I tried adding the rules
1. if (JRequest::getVar("template") == "graphicstheme") return true;
Set Session A
2. Grab Session A and apply graphicstheme
I can't seem to get the theme to swap and save until it gets changed
Any help would be greatly appreciated
Re: Change template depending on session theme.
Hi annamations,
You're on the right track. I'd do it this way:
1 - if (JRequest::getVar("template") == "themetextonly") return true;
Delete session A-E
Set session A
Continue
2 - if (JRequest::getVar("template") == "graphicstheme") return true;
Delete session A-E
Set session B
Continue
3 - detect session A
Set themetextonly template
quit rulechain
4 - detect session B
Set graphicstheme template
quit rulechain
Hope that helps,
Stephen
Re: Change template depending on session theme.
Howdy just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Opera. I'm not sure if this is a format issue or something to do with web browser compatibility but I figured I'd post to let you know. The design look great though! Hope you get the problem fixed soon. Cheers
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Change template depending on session...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7624
- Newest User:
- borger3298
- Members Online:
- 1
- Guests Online:
- 199
- Online:
- borger3298
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked