Thread: side columns

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Sep 2004
    Posts
    42
    Plugin Contributions
    0

    side columns

    Hi

    i want to display both side columns on the home/index page

    but on all other pages i wanna display only right columns, is

    there a way to setup store like this. Please advise.

    Thanks in advance!

  2. #2
    Join Date
    Sep 2004
    Posts
    42
    Plugin Contributions
    0

    Default Re: side columns

    Hey Ajeh!

    Please help. I already tried a method i found in one of

    the threads but is not working for me. In order to hide left

    column on product list page for any category i created a

    folder as includes/templates/celltemp/index_product_listing

    where celltemp is my_template and copied tpl_main_page.php

    to index/product_listing folder and uncommented $flag_disable_left = true;

    After all this left column is still visible on product listing page.

    Can you please guide how to dissable left column from all the

    pages except the main index page. Also if i am able to hide

    the left column will the center column extend itself to the left

    end on its own or there's more to that.

    Your help appreciated

    Thanks!

  3. #3
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: side columns

    Quote Originally Posted by akhil
    Hi

    i want to display both side columns on the home/index page

    but on all other pages i wanna display only right columns, is

    there a way to setup store like this. Please advise.

    Thanks in advance!
    Admin->Tools->Layout Boxes controller

  4. #4
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: side columns

    Please refer to a topic in archive:
    Sidebox Overrides


    .
    A New Starter again

  5. #5
    Join Date
    Sep 2004
    Posts
    42
    Plugin Contributions
    0

    Default Re: side columns

    Hey guys thanks for your time and reply, from admin layout

    settings i can only set left or right column on or off globally but what

    want to achieve is that to hv both columns only on main index page

    and hv left column turned off for all other pages. Going through other

    threads i found that i hv to override all other pages but the override

    system for some reason is not working for me. If someone can guide me

    how to override the page taking product listing page for example.

    Thanks and eagerly waiting for your reply.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: side columns

    Left and Right columns to be visible on Home Page, but
    Left column should be "off" on all other pages.


    Edit /includes/templates/YOURTEMPLATE/common/tpl_main_page.php
    around line 47 you have:
    PHP Code:
      $header_template 'tpl_header.php';
      
    $footer_template 'tpl_footer.php';
      
    $left_column_file 'column_left.php';
      
    $right_column_file 'column_right.php'
    add this above it:
    PHP Code:
      if (!($current_page!='index' || (int)$cPath>0)) {
        
    $flag_disable_left true;
      } 
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: side columns

    Left and Right columns to be visible on Home Page, but
    Left column should be "off" on all other pages.
    Not really, it's the other way around. It turn it off on main page and is on, on the other pages.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  8. #8
    Join Date
    Sep 2004
    Posts
    42
    Plugin Contributions
    0

    Default Re: side columns

    Yeah DrByte it worked but the other way around. If i use

    the code u asked me to add the left column is hidden on main

    page and visible on all other pages but should be vice versa. I am

    not good with programming and syntax so if you can plz tell

    how to have left column on main page and hidden on all other

    pages. thanks

  9. #9
    Join Date
    Sep 2004
    Posts
    42
    Plugin Contributions
    0

    Default Re: side columns

    Yeah DrByte it worked but the other way around. If i use

    the code u asked me to add the left column is hidden on main

    page and visible on all other pages but should be vice versa. I am

    not good with programming and syntax so if you can plz tell

    how to have left column on main page and hidden on all other

    pages. thanks

  10. #10
    Join Date
    Sep 2004
    Posts
    42
    Plugin Contributions
    0

    Default Re: side columns

    can anybody plz help

    how to have left and right column on main page but

    hide the left column on all other

    pages.

    thanks

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Display product attributes in two columns (side by side)
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 72
    Last Post: 8 Nov 2010, 01:55 AM
  2. problems with side columns
    By diseasecore in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Aug 2010, 11:38 PM
  3. no side columns on index
    By griffo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Jun 2008, 09:22 AM
  4. Utilising Side Columns
    By kru in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2008, 05:12 PM
  5. Colour of Side Columns
    By Steven300 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 Jan 2008, 02:26 PM

Posting Permissions

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