test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • David Brooks Friend
    #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
    Dave

    Menalto Friend
    #244671

    I 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';

    David Brooks Friend
    #244675

    My 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 Friend
    #244678

    You 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?

    David Brooks Friend
    #244683

    That works great, but as you say, I’ll need to add it manually to each link I have to the section.

    mj1256 Friend
    #244759

    why 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

Viewing 6 posts - 1 through 6 (of 6 total)

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