Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2008
    Posts
    9
    Plugin Contributions
    0

    Default Moving Sideboxes from Right to Left Column for Different pages

    Hi,

    I've been looking in the forum for a month now, getting ready to go live, and so am posting my question. I'm on 1.3.8a, Php 5.2.8 (Zend: 2.2.0) and wondering how one can have some sideboxes on the right on the home page, then move them to the left for the rest of the site.

    Layout Box controller only gives me one choice or the other.

    Right now, the sideboxes on the right make sense for the home page, but disappear because I've disabled the right column in most other pages, but still want them to be accessible.

    Is this possible?

    Thanks so much for your time,

    Jamana
    www.skystonezencart.com (development site)

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Moving Sideboxes from Right to Left Column for Different pages

    Not without much in the way of custom code
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Moving Sideboxes from Right to Left Column for Different pages

    Thank you so much for your reply, very much appreciated.

    Jamana

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Moving Sideboxes from Right to Left Column for Different pages

    If you make a page-specific copy of /includes/templates/your_template/common/tpl_main_page.php, you can move the #navColumnTwo code up to display within #navColumnOne, only for the home page. If memory serves, you would put it in /includes/templates/your_template/index_home/tpl_main_page.php, or possibly /includes/templates/your_template/common/index_home/tpl_main_page.php. I'd have to go look up the right format.

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Moving Sideboxes from Right to Left Column for Different pages

    From comments at top of tpl_main_page.php:

    * - example: to override the privacy page<br />
    * - make a directory /templates/my_template/privacy<br />
    * - copy /templates/template_default/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php<br />

    So yes, /includes/templates/your_template/index_home/tpl_main_page.php should be it.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Moving Sideboxes from Right to Left Column for Different pages

    Update: "index_home" is not used for the home page; that and all other index pages are named "index", so there is no way of distinguishing the home page with the page-name subfolder system.
    This is obviously a potential problem, and ought to be changed, but the change would be deep in the core code.

    You would need to customize the basic template copy of tpl_main_page.php with
    PHP Code:
    if($this_is_home_page) {
      
    //do homepage stuff
    }else{
      
    //do standard stuff

    to execute one thing on the home page and another on other pages.

 

 

Similar Threads

  1. Moving my Category column from above my catalog column to the left side of it.
    By tahiti amin in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 22 Aug 2012, 11:07 AM
  2. Different Left/Right Sideboxes
    By ideasgirl in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 25 Mar 2010, 04:23 PM
  3. Right Column Sideboxes not staying to the right on some pages
    By kdays in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Mar 2010, 09:53 PM
  4. Only homepage without right and left column sideboxes
    By dreamlex in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 May 2009, 06:34 PM
  5. Turn off left/right column for certain pages
    By Berserker in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Feb 2008, 02:55 AM

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