Forums / Basic Configuration / Adding one sidebox to a define page when sidebox is turned off

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

Locked

Views: 1,562

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
29 Nov 2008, 10:48 PM
#1
happyworker avatar

happyworker

New Zenner

Join Date:
Sep 2006
Posts:
40
Plugin Contributions:
0

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

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!

29 Nov 2008, 11:38 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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?

29 Nov 2008, 11:38 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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)

30 Nov 2008, 12:27 AM
#4
happyworker avatar

happyworker

New Zenner

Join Date:
Sep 2006
Posts:
40
Plugin Contributions:
0

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?