Guest dirkn Posted April 15, 2006 Share Posted April 15, 2006 Hello, this is my first post here.(excuse my english ) I search the forum but I can't find an answer. Please help me, I want to "highlight" the choosen category-tab (Killer-Skin). No idea how to do this. Greets dirk Quote Link to comment Share on other sites More sharing options...
convict Posted April 16, 2006 Share Posted April 16, 2006 Welcome on board You have to manage: 1) PHP categories file 2) TEMPLATE categories file 3) CSS . . You have to be familiar with PHP temlate system. Quote Link to comment Share on other sites More sharing options...
Guest dirkn Posted April 16, 2006 Share Posted April 16, 2006 ... You have to be familiar with PHP temlate system. PHP-knowledge is ok but never works with template system. Between the lines I hear you say: HANDS OFF! Better I look for another layout solution!? Thank you dirk Quote Link to comment Share on other sites More sharing options...
markscarts Posted April 16, 2006 Share Posted April 16, 2006 Hmmm, that was not my impression, Dirk. I think he meant the best solution lies in modding the code of those files: includes/categories.inc.php skins/Killer/styleTemplates/boxes/categories.tpl skins/Killer/styleSheets/layout.css And this will require basic knowledge of PHP, XML (or at least HTML) and CSS :) Quote Link to comment Share on other sites More sharing options...
convict Posted April 16, 2006 Share Posted April 16, 2006 Thank you Mark, that exatly was what i meant :) Quote Link to comment Share on other sites More sharing options...
Guest dirkn Posted April 18, 2006 Share Posted April 18, 2006 Thank you Mark, that exatly was what i meant Ok, now its clear. I realize a different layout of each category with the {DATA.cat_id}-variable: very simple! But now I see: stupid. The current cat_name is in big letters on the shop-site, without any changes. That is round about what I want. Ok, a little bit more learned about CC...! Quote Link to comment Share on other sites More sharing options...
Guest greg_a Posted April 20, 2006 Share Posted April 20, 2006 Hi, I'd been pondering this too, however my knowledge of PHP isn't too great. I can see how each category has a unique cat_id (& the homepage & sale categories have 'homepage' & 'sale_items' IDs) & it's obvious enough that this has to be used somewhere to create the 'current page' type effect, but I can't quite work out how it's done. My usual technique is to assign a unique ID to the <body> tag of each page & then use a descendent selector in CSS to style it appropriately. Would anyone be able to give me some pointers as to what needs tweaking in the categories.inc.php file? Much appreciated. Quote Link to comment Share on other sites More sharing options...
Guest dirkn Posted April 21, 2006 Share Posted April 21, 2006 Hi, I'll try to explain what I've done: First, you must have the mod: Change Layout by Category. in /skins/Killer/styleTemplate/boxes/categories.tpl you see {DATA.cat_id}. Wth this cat_id you can select a style-class like <!-- BEGIN: li --> <td><a class="YOURSTYLECLASS{DATA.cat_id}" href="index.php?act=viewCat&catId={DATA.cat_id}">{DATA.cat_name}</a></td> <!-- END: li --> Only what to do is, read out the cat_id from database and create different css-classes for your different category-tabs like YOURSTYLECLASS1 or whatever your cat_id-value is. Then, it is easy to place a different css-class to each css-file you can select by category. HTH Dirk Quote Link to comment Share on other sites More sharing options...
Guest greg_a Posted April 23, 2006 Share Posted April 23, 2006 Many thanks for that, I'll give it a try. Cheers. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.