Template color change by page class suffix

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Wed Jun 30, 2010 9:16 am
Hi, I'm modifying the new and by the way very nice Postnote template for my customer. But I didn't find any information about changing the template color by page class suffix (not the menu link at the right bottom). At other Templates e.g. ... I can add the page class suffix "&yt_color=white" for example and the template will change to the white style. Same procedure with "&yt_color=black" and the site turns to black template version. So I can link menus/articles to an specific template color.

I need this feature, because my clients needs 3 different logos and template backgrounds/colors for 3 different product groups. Is this possible with this Postnote template?

Thankx in advance

ramazzottiqueen
User avatar
Junior Boarder

GK User
Mon Aug 09, 2010 2:58 pm
After 1 month of waiting time without any answer I tried another way to solve my problem. I installed 2 more copies of the postnote template. I had to rename it to postnote, postnote_2 and postnote_3. Each template has a different logo and background. I also changed every absolute link of each template in several .php files. So I could manage the needed template color switch concerning several articles. Now it works.

But one problem still remains. If I click to the link and the template changed to postnote_2 or postnote_2 my Gavick Toolbar shows 1 | 1 | GK_SEARCH or GAVICK_TOOLS and no more register, search and so on. Any idea?

And how can I change the language of the Gavick-Tools? The modules are named correctly. Anyway it's shown in English. I need it in german language with login | registrieren | suche instead of login |register | search

please help. Thanks.
User avatar
Junior Boarder

GK User
Mon Aug 09, 2010 3:53 pm
Hei

In Your templates folder there should be en-GB.tpl_gk_postnote.ini file with translations of GK_*** stuff. Have You set Your sites language to German, so there some translation issues?

Best Regards,
Rain
User avatar
Senior Boarder

GK User
Mon Aug 09, 2010 5:19 pm
the 1 1 1 comes from the en-GB-tpl.postnote.ini or something like that...

you will need to rename it to fit the name of the template you made...
User avatar
Platinum Boarder

GK User
Tue Aug 10, 2010 8:10 am
Hi and thanks for your answer. Yes, the site language is set to german. I also added a second .ini german language file and experimented with renaming in de-DE.tpl_gk_postnote.ini and so on. The bug remains...

regards
User avatar
Junior Boarder

GK User
Tue Aug 10, 2010 8:17 am
you will need to call it de-DE.tpl_gk_postnote_2.ini etc...
User avatar
Platinum Boarder

GK User
Tue Aug 10, 2010 9:32 am
sorry - does not work... the problem still remains. I renamed the language file from

en-EN.tpl_gk_postnote.ini

to

de-DE.tpl_gk_postnote_2.ini

as mentioned and changed the url in the templateDetails.xml file to

<languages>
<language tag="de-DE">de-DE.tpl_gk_postnote_2.ini</language>
</languages>

and all href="../templates/gk_postnote/

to

href="../templates/gk_postnote_2/

any other idea? Thankx :-)
User avatar
Junior Boarder

GK User
Tue Aug 10, 2010 9:37 am
try call it en-GB .... to see if that works...

that should be all..
User avatar
Platinum Boarder

GK User
Tue Aug 10, 2010 10:02 am
sorry - still 1 | 1 | GK_SEARCH
User avatar
Junior Boarder

teitbite
Wed Aug 11, 2010 8:30 pm
Hi

Try maby copy the translated content of this file to anyone from working language files. Or copy this file to language directory.
User avatar
Moderator

GK User
Fri Aug 13, 2010 11:49 am
Hi, sorry for my basic english.

I have the same problem and the solution is: modify the file Template/gk_postnote/layouts/block/toolbar.php

eg:
line 34-35

<?php if(GK_TOOLS) : ?>
<a href="#" id="btn_tools"><span><?php echo JText::_('GK_TOOLS'); ?></span></a>

You go to rename the text 'GK_TOOLS', included in to parenthesis on line 35, as you please.

<a href="#" id="btn_tools"><span><?php echo JText::_(>>>>>>MODIFY THIS WORD AS YOU PLEASE>>>>>>'GK_TOOLS'); ?></span></a>
User avatar
Fresh Boarder

GK User
Fri Aug 13, 2010 11:59 am
Hi, this works! Many thanks... This is the solution. Thank you :kiss:
User avatar
Junior Boarder


cron