Login Form


Board index » Loaded Commerce Support » General Support

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: codex?
PostPosted: Thu Mar 29, 2012 7:58 pm 
Offline
CRE Newbie

Joined: Thu Mar 29, 2012 7:55 pm
Posts: 2
HI

newbie here, i want to ask something but i dont know how to start and not sure if this is the right thread to post

this two pages

http://www.afn.com.au/store/Fishing-&-O ... index.html

http://www.afn.com.au/store/AFN-Media-M ... index.html

is using a template file called index_nested.tpl.php,

now i want the first link to have a different css than any other pages that uses the same template

is there a way to do that?

like in the wordpress you can have is_page, is_frontpage and etc.


Top
 Profile  
 
 Post subject: Re: codex?
PostPosted: Sat Mar 31, 2012 11:49 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 3177
Location: New Zealand
Do you mean controlling the appearance of a category page ? Should be able to do this using a css stylesheet, checking for the category id in question. Is that what you mean?

Simon

_________________
www.codemehappy.com
No PMs thanks - link in signature below.
For Cre Loaded Commerce tips, quotes on coding work, free how-to articles


Top
 Profile  
 
 Post subject: Re: codex?
PostPosted: Sun Apr 01, 2012 8:12 pm 
Offline
CRE Newbie

Joined: Thu Mar 29, 2012 7:55 pm
Posts: 2
soundzgood2 wrote:
Do you mean controlling the appearance of a category page ? Should be able to do this using a css stylesheet, checking for the category id in question. Is that what you mean?

Simon


yeah i know i can control the appearance using the css but what i want is just controlling the appearance using css using the category ID


Top
 Profile  
 
 Post subject: Re: codex?
PostPosted: Mon Apr 02, 2012 7:39 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 3177
Location: New Zealand
Well try this in the template's main_page.tpl.php:

Code:
<?php
}
if ($current_category_id == 'your category id' && $category_depth == 'nested') { ?>
<link rel="stylesheet" type="text/css" href="./nameofstylesheet2.css">
<?php
} else {
?>
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_STYLE;?>">
<?php }
?>

Simon

_________________
www.codemehappy.com
No PMs thanks - link in signature below.
For Cre Loaded Commerce tips, quotes on coding work, free how-to articles


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Board index » Loaded Commerce Support » General Support

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
It is currently Sat May 25, 2013 7:49 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group