Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

RE: Color Themed Site/Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-27-2008, 06:37 PM
  DezineJunkie's Avatar 
DezineJunkie DezineJunkie is offline
 

Senior Member
  
Join Date: Jan 2008
Posts: 174
 

Question RE: Color Themed Site/Pages

How do i make different pages different colors in the site.
Do i have to create a CSS for each page to do that?
__________________
X-CART Pro V.4.3.0
PHP version 5.2.11
MySQL version 5.0.81
Architecture x86_64
Apache version 2.2.14 (Unix)mod_ssl/2.2.14
Operating System: Linux
Dedicated Ip
cPanel Pro 1.0 (RC1)
cPanel Version 11.24.5-RELEASE
Modules: DL Expander, DL Products, One Page Checkout, Dynamic Images,
Multicolumn Recommends, Narrow by Search, Random Products Tabs.
X-AOM, SALES-N-STATS 1.3 , X-Offers-4.1.9, X-Magnifier41x, X-Fancy Categories,
X-RSS Feeds, Static Meta Tags , X-AJAX Rating System v4.1


Reply With Quote
  #2  
Old 01-27-2008, 08:57 PM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default Re: Color Themed Site/Pages

If you are referring to pages.php?pageid=???, you'd need to create additional files like customer/home.tpl, but with their unique layouts. Then, when you go to pages.php?, at the bottom you can select which pageid corresponds to which unique layout (i.e. home.tpl, homesimilar1.tpl, homesimilar2.tpl, etc).

Hope that helps.
__________________
4.1.9 Gold

window valances | curtains
Reply With Quote
  #3  
Old 01-28-2008, 04:09 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Color Themed Site/Pages

You don't need to create a new template, you can simply call a different stylesheet for each static page. It would look something like this:

{if $smarty.get.pageid eq "5"}
<LINK rel="stylesheet" href="{$SkinDir}/skin1.css" type="text/css">
{elseif $smarty.get.pageid eq "6"}
<LINK rel="stylesheet" href="{$SkinDir}/skin2.css" type="text/css">
{/if}

That wil show one css file for page 5, and a different one for page 6. You would use this in customer/home.tpl in the head.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:35 AM.

   

 
X-Cart forums © 2001-2020