new style

Support forum dedicated to GameNews game Joomla template perfect for gamers, game portal news and reviews with dedicated extensions for rating and video support
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Nov 14, 2014 2:16 pm
Reply with quote
Report this post
Welcome.
GN template has 3 different styles. How can I create another one, 4 style?
In new style I don't want to make substantial modifications, I just want to create a style in which I will have a different background image
User avatar
Junior Boarder

GK User
Fri Nov 14, 2014 5:16 pm
Reply with quote
Report this post
Then it would be better to use one of existing styles by overriding it in override.css
Could you please post an url to your site?
User avatar
Moderator

GK User
Mon Nov 17, 2014 6:16 pm
Reply with quote
Report this post
yes, it is the best solution, but in my case sytuation is different. On my website I created 6 items in the main menu. For each of them, I would like to create a list of articles from single category, with a different background image. In this situation, i would need 6 different styles. Three I already have, now i need to create the next three.

My website: uprawypolowe.pl
User avatar
Junior Boarder

GK User
Mon Nov 17, 2014 6:57 pm
Reply with quote
Report this post
Can I somewhere see the setup that uses different styles for different articles? Right now your menu items don't point to any article.
User avatar
Moderator

GK User
Mon Nov 17, 2014 7:03 pm
Reply with quote
Report this post
just click position "uprawa" in main menu or click http://uprawypolowe.pl/index.php?option ... Itemid=122.
I change background image in style no.2. soon i will do the same in style no.3
User avatar
Junior Boarder

GK User
Mon Nov 17, 2014 7:12 pm
Reply with quote
Report this post
Please check if editing this file:
/templates/gk_gamenews/templateDetails.xml
and modifying this section:
Code: Select all
                        <field name="template_bg" type="list" default="1" label="TPL_GK_LANG_TEMPLATE_BG" description="TPL_GK_LANG_TEMPLATE_BG_DESC">
                              <option value="1">TPL_GK_LANG_BG_1</option>
                              <option value="2">TPL_GK_LANG_BG_2</option>
                              <option value="3">TPL_GK_LANG_BG_3</option>
                        </field>

and changing it to:
Code: Select all
                        <field name="template_bg" type="list" default="1" label="TPL_GK_LANG_TEMPLATE_BG" description="TPL_GK_LANG_TEMPLATE_BG_DESC">
                              <option value="1">TPL_GK_LANG_BG_1</option>
                              <option value="2">TPL_GK_LANG_BG_2</option>
                              <option value="3">TPL_GK_LANG_BG_3</option>
                              <option value="4">TPL_GK_LANG_BG_4</option>
                              <option value="5">TPL_GK_LANG_BG_5</option>
                              <option value="6">TPL_GK_LANG_BG_6</option>
                        </field>

suits your needs.
You might also want to add missing translation keys to:
/language/en-GB/en-GB.tpl_gk_gamenews.ini
User avatar
Moderator

GK User
Mon Nov 17, 2014 7:13 pm
Reply with quote
Report this post
Finally add additional background styles to:
templates/gk_gamenews/css/template.css
or even better use override.css and add declarations:
Code: Select all
body[data-bg="4"] {
   background: #fff url('../images/bg4.jpg') repeat 0 0;
}
body[data-bg="5"] {
   background: #fff url('../images/bg5.jpg') repeat 0 0;
}
body[data-bg="6"] {
   background: #fff url('../images/bg6.jpg') repeat 0 0;
}
User avatar
Moderator

GK User
Mon Nov 17, 2014 8:23 pm
Reply with quote
Report this post
Unfortunately, these changes have not helped. In the template style edytor (on backend) I can still switch between the three default styles (see attachment - http://uprawypolowe.pl/attachment.png)
User avatar
Junior Boarder

GK User
Tue Nov 18, 2014 5:22 pm
Reply with quote
Report this post
Please send me a PM with:
1. URL to your website
2. login and password of user with admin/super-admin privileges (please create one for me)
3. ftp data (host, user, password)
4. link to this thread
User avatar
Moderator

GK User
Tue Nov 18, 2014 6:03 pm
Reply with quote
Report this post
i just send you PM
User avatar
Junior Boarder

GK User
Fri Nov 21, 2014 1:33 pm
Reply with quote
Report this post
From what I see you have 2 files:
Code: Select all
templatedetails.xml

and
Code: Select all
templateDetails.xml

and only second one is correct. I have made the changes and it works (you can select style 4,5,6).
User avatar
Moderator

GK User
Wed Nov 26, 2014 9:00 pm
Reply with quote
Report this post
works great, thank you
User avatar
Junior Boarder

GK User
Sat Nov 29, 2014 2:55 pm
Reply with quote
Report this post
If you will have any other questions (not relative to this thread), feel free to post new forum threads - it allows us to answer you faster.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.