osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

different layout for homepage and category page

This is a discussion on different layout for homepage and category page within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi all, I'm new to oscmax, and I'm trying to skin the site based on designs handed to me. The ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 08-14-2007, 05:58 AM
New Member
 
Join Date: Aug 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ericgtp313 is on a distinguished road
Default different layout for homepage and category page

Hi all, I'm new to oscmax, and I'm trying to skin the site based on designs handed to me.
The homepage has one design, the category page has a completely different design, and the products (and all other pages) have a different design than both of those.

So, using BTS, how would I make the design different for the categories page?

If I'm understanding correctly, i just put the filename.tpl.php into templates/templatename/content/, but since the category page and homepage are both index.php, how could I make one use a different template than the other?

Any help is appreciated, thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-14-2007, 12:22 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 444
Thanks: 3
Thanked 75 Times in 70 Posts
Rep Power: 6
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: different layout for homepage and category page

This is a case where you want to create multiple main_page.tpl.php files and call the different file based on the page being called

[changes made in the catalog file for the page, for instance /catalog/product_info.php ]

The line you want to look for in these files is:
include (bts_select('main', $content_template)); // BTSv1.5
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-14-2007, 01:05 PM
New Member
 
Join Date: Aug 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ericgtp313 is on a distinguished road
Default Re: different layout for homepage and category page

Doh. I looked at that for a while and figured that was the key, but never investigated further.

Thanks for the help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Got a blank page on homepage but admin login works ambitnfun osCommerce 2.2 Installation Help 2 06-15-2007 04:43 PM
BTS: Different Layout for Main Site Page ddecjc osCMax v1.7 General Mods Discussion 1 09-15-2004 10:37 AM
Title is Different on Category Page compared to the Homepage sasjamal osCommerce 2.2 Modification Help 2 04-19-2004 05:51 AM
Layout with transparent gifs vs. layout with CSS Lynoure osCommerce 2.2 Modification Help 1 01-16-2004 02:22 AM
Need help with category layout skor osCommerce 2.2 Modification Help 1 04-22-2003 03:03 AM


All times are GMT -8. The time now is 04:03 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax