-
AuthorPosts
-
November 9, 2009 at 3:44 pm #145883
I’m trying to get switching colors to work.
On the ja_tube demo site there are these links:
?ja_color=blue
?ja_color=red
?ja_color=greenetc.
But when I try to do this, it does not change color at all, just stay default.
In the template parameters, the tooltip @ ‘Default style’ says i can enable style switcher, but working with joomla 1.5, I cannot find this switcher. Have googled for hours and read other posts in this forum, but havn’t found a solution.
What I am trying to do with my site is to give each category a different color layout, so I want to add this “ja_color=red” to my menu links. But even the default color-links, after installing the quickstart folder, do not work.
I cannot give you a demo site, but installing quickstart + Joomla_1.5.14-Stable-Full_Package gives your default ja_tube site:
http://template15.joomlart.com/ja_tube/index.php?option=com_content&view=article&id=22&Itemid=56
Only without working style switcher.
Please help
Thnx
prakash Friendprakash
- Join date:
- October 2008
- Posts:
- 439
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 146 times in 115 posts
November 11, 2009 at 9:15 am #323208Hi
I do not know how to do it the “right way” but I have a small patch by which the styling change works.
find this line in templates/jatube/index.php
<link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>.css" rel="stylesheet" type="text/css" />
and replace it with this
<?php $getthecolor = $_GET['ja_color']; if ($getthecolor == NULL) { ?>
<link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>.css" rel="stylesheet" type="text/css" />
<?php } else {?>
<link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($getthecolor); ?>.css" rel="stylesheet" type="text/css" />
<?php }?>now by default, the default color which you have set in template parameters will be shown, but if you want to change color of a particular page – simply pass the ?ja_color… and the color will change
1 user says Thank You to prakash for this useful post
November 11, 2009 at 12:27 pm #323249Thank you for the code. Didn’t though of it to $_GET the variable. Very simple.
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by eric creemers 15 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum