Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display custom sidebox only on one page.

Display custom sidebox only on one page.

Locked

Views: 1,739

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
29 Aug 2007, 7:47 PM
#1
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Display custom sidebox only on one page.

I'm making a custom sidebox, and I was wondering what I need to do to make it so it only displays on 1 page. Similar to how the tell a friend box works when you view a product.

Thanks to whoever maybe able to help.

29 Aug 2007, 8:02 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Display custom sidebox only on one page.

Look at /includes/templates/template_default/common/tpl_main_page.php (in the top comments) for directions and examples of how to do this kind of thing.

What one page are you wanting this on?

29 Aug 2007, 8:08 PM
#3
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Re: Display custom sidebox only on one page.

Thats to remove the entire columns for some pages.

I'm not looking to do that I want a one sidebox to show up one 1 page, and no other pages without affecting my other sideboxes. ( just like the tell a friend sidebox works)

Could this also be done with TPL_main_page.php cause I don't see anything up top saying what I would need to do to achieve this?

Thanks.

gjh42:

Look at /includes/templates/template_default/common/tpl_main_page.php (in the top comments) for directions and examples of how to do this kind of thing.

What one page are you wanting this on?

29 Aug 2007, 8:28 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Display custom sidebox only on one page.

The principles are applicable to all types of selective display functions.

Many sidebox files have a $show_sidebox kind of variable near the top; for any that do, you can put a test above that to set "show" to true or false depending on conditions.