Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Varying sideboxes shown on different pages

Varying sideboxes shown on different pages

Locked

Views: 986

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
26 Jan 2007, 4:04 PM
#1
limejuice avatar

limejuice

New Zenner

Join Date:
Jan 2007
Posts:
5
Plugin Contributions:
0

Varying sideboxes shown on different pages

Hi, first post here - great software but I'd be grateful for a bit of help.

From the FAQ https://www.zen-cart.com/tutorials/index.php?article=249

if (!isset($ez_page_id) || !in_array($ezpage_id,explode(",",'2,5')))


means that the template to display the sidebox will be called whenever the page is not an EZ-Page or, if it is an EZ-Page, it does not have ID 2 or 5.

My Question: What form would the condition take to only display a sidebox on the main page=index or main_page=index&cPath=77 or mainpage=page2 etc etc?

Would be really grateful of some help!

27 Jan 2007, 5:36 AM
#2
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Varying sideboxes shown on different pages

limejuice:

Hi, first post here - great software but I'd be grateful for a bit of help.

From the FAQ https://www.zen-cart.com/tutorials/index.php?article=249

if (!isset($ez_page_id) || !in_array($ezpage_id,explode(",",'2,5')))


means that the template to display the sidebox will be called whenever the page is not an EZ-Page or, if it is an EZ-Page, it does not have ID 2 or 5.

My Question: What form would the condition take to only display a sidebox on the main page=index or main_page=index&cPath=77 or mainpage=page2 etc etc?

Would be really grateful of some help!

maybe this one?

https://www.zen-cart.com/tutorials/index.php?article=233

betty