Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    40
    Plugin Contributions
    0

    Default Adding one sidebox to a define page when sidebox is turned off

    Hi there,

    I want to be able to show one sidebox (testimonials) on my main_page.
    I have turned off the use of the righthand sidebox on my tpl_main_page.php

    Code:
    if ($current_page_base == 'index' and $cPath == '') {
      $flag_disable_right = true;
    }
    Now no sideboxes show...which is fine, but how to I add just the testimonial sidebox to my main_page.php?
    I want to add code to my main_page.php, but I'm not sure what I would have to add.

    Cheers!

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

    Default Re: Adding one sidebox to a define page when sidebox is turned off

    Are you wanting the testimonials in the define_main_page body, or as the lone right sidebox?

    If you want any right sidebox to show, you will need to keep the right column active and turn off the other individual right sideboxes for the home page. Which sideboxes normally display on the right for you? Can you post a link to your site?

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Adding one sidebox to a define page when sidebox is turned off

    If you are saying that you want to put the testimonials box into the right column, then the column would need to be enabled, and you would need to disable the other boxes for the homepage individually.

    In recent versions of Zen Cart there is a $this_is_home_page variable which is true or false that would make this easier.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Sep 2006
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding one sidebox to a define page when sidebox is turned off

    I was thinking about having it within my layout. The way my layout is now, I have no right sidebar and the main_page fills up the right side where the side boxes would have been. I want to be able to add the testimonial sidebox near the bottom of the page.
    I think if I enable the right sidebox and use the $this_is_home_page variable, I might not get the sidebox exactly where I want it on the page. (bottom right no matter how much content I end up writing for the main page).
    Can I use some code to call this sidebox?

 

 

Similar Threads

  1. v150 Indentation problem on Shopping Cart Page When Product Image is Turned Off
    By Dave224 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Sep 2012, 04:50 PM
  2. Items show when turned off
    By Ivanna in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Aug 2011, 10:06 PM
  3. I turned off my the page that shows when you add a product?
    By RAM1001 in forum General Questions
    Replies: 1
    Last Post: 23 May 2009, 07:38 PM
  4. Featured Sidebox still shows when turned of in Admin
    By lbpp in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Oct 2006, 09:49 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR