Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Hide sideboxes on main page

    Hi,

    I wanted to hide the right side boxes on the main page so I created the tpl_main_page in my custom directory to read:

    if (in_array($current_page_base,explode(",",'index_default')) ) {
    $flag_disable_right = true;
    }

    I thought this would do the trick and have kept trying but can't seem to get it right. The "space" for the right column still shows and the main content is not filling the screen.

    Thanks for you help in advance.

    Rick

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Hide sideboxes on main page

    Try this:

    if ($current_page_base == 'index_home') {
    $flag_disable_right = true;

  3. #3
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Hide sideboxes on main page

    Hi Clyde,

    Do I replace the line with yours or in addition to. I tried to replace it and got a parse error.

    By the way we live in Colorado Springs too. Small world!!

    Thanks

    Rick

  4. #4
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Hide sideboxes on main page

    Hi Clyde,

    Nevermind. The statement you gave me was just missing the end bracket. Once I put that in it worked fine.

    Thanks

    Rick

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Hide sideboxes on main page

    I left out a bracket:

    Code:
    if ($current_page_base == 'index_home') {
    $flag_disable_right = true;
    }
    Replace the line you have with the above.

    We live in Security/Widefield.

  6. #6
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Hide sideboxes on main page

    Hi Clyde,

    My wife's grandparents live there as well. We are close to there. We live at Markscheffel and Bradley.

    Concerning the layout. The solution you gave me does not seem to allow me to have sideboxes on other pages.

    Thanks

    Rick

  7. #7
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Hide sideboxes on main page

    Rick,

    Hmmmmmm!

    What version of ZC are you using? It should work with versions as of 1.3.5 and later.

    Let me work on this a bit. I'll find an answer and get back to you.

  8. #8
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Hide sideboxes on main page

    Sorry Clyde. I lied. The sideboxes do work on product pages but not top category pages. Does that make sense?

    I am updating my old site to 1.36. I have it on my server in another directory to test.

    Thanks

    Rick

  9. #9
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Hide sideboxes on main page

    Makes perfect sense.

    try this:

    Code:
     if ($current_page_base == 'index_home' and $cPath == '') {
     $flag_disable_left = true;
     }

  10. #10
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Hide sideboxes on main page

    Worked perfectly. Thanks!!

    I am a manager at the Lonestar Steakhouse on Academy and Montebello. Stop by sometime and I will ensure you a nice dinner at a great price.

    Ask for Rick. I work mainly nights.

    Thanks again.

    Rick

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Show/Hide sideboxes based on page
    By JeffD in forum General Questions
    Replies: 188
    Last Post: 21 May 2015, 10:10 PM
  2. Hide Categories at top of main page
    By deemurphy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Apr 2009, 05:44 PM
  3. Show/Hide sideboxes based on page
    By monkeyjr47906 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 Nov 2007, 07:25 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