-
AuthorPosts
-
April 7, 2008 at 9:32 am #127309
I have 4 main sections on my site and I want each to use a different color theme. What’s the best way to use the color switcher so it’s triggered on the ‘home’ page for each section?
Thanks
DaveMenalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
April 7, 2008 at 10:01 am #244671I think the best in this case would be to copy the template 3 times and assign them to each menu, and set up with the colors you want on each of them. You need to rename the template folder and rename the template name in the templatDetails.xml file:
<?xml version="1.0" encoding="iso-8859-1"?>
<install version="1.5" type="template">
<name>ja_drimia</name>
<creationDate>15 Dec 2007</creationDate>
<author>JoomlArt.com</author>
<copyright></copyright>
<authorEmail>webmaster@joomlart.com</authorEmail>
<authorUrl>http://www.joomlart.com</authorUrl>
<version>1.5</version>
<description>JA Drimia - the Stylist within</description>
<files>
. And in ja_templatetools.php:var $template = 'ja_drimia';
April 7, 2008 at 10:13 am #244675My rather crude solution was to use the switchTool script on each of the section ‘home’ pages something like this.
<script type=”text/javascript”>
if (Cookie.get(‘ja_drimia_ja_color’) != ‘green’)
switchTool(‘ja_drimia_ja_color’,’green’);
</script>I added this to the top of the section home page article, but obviously this mean I can only edit it with a non-WYSIWYG editor otherwise the <script> part gets stripped out.
Menalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
April 7, 2008 at 10:16 am #244678You can try to use this at the end of the link:
?ja_color=orange
But then you need to add all links maually, and not sure if it will work out as you want, but give it a try?April 7, 2008 at 10:30 am #244683That works great, but as you say, I’ll need to add it manually to each link I have to the section.
mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
April 8, 2008 at 12:38 am #244759why can’t you just use a program like textpad and create a clone using the find and replace function, its the same process for having multiple versions of a compnent run on one site.
From my experience, the renaming of the template is the best way to go
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by mj1256 16 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum