osCmax v2.5 User Manual
Results 1 to 3 of 3

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 ...

      
  1. #1
    New Member
    Join Date
    Aug 2007
    Posts
    11
    Rep Power
    0


    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!

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    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

  3. #3
    New Member
    Join Date
    Aug 2007
    Posts
    11
    Rep Power
    0


    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.

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •