Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Displaying sidebox on one page

Displaying sidebox on one page

Views: 378

Results 1 to 3 of 3
15 Oct 2012, 5:50 AM
#1
prymlurg avatar

prymlurg

New Zenner

Join Date:
Oct 2012
Location:
Haysville, Ks
Posts:
13
Plugin Contributions:
0

Displaying sidebox on one page

Site: https://www.prymlurg.com

I looked at the information in the Tutorials located here http://www.zen-cart.com/content.php?251 but that didn't work or I did it wrong.

I have created several sideboxes that I want to display on particular pages. I used the Blank_Sidebox mod to create them. That whole mess is located here http://www.zen-cart.com/showthread.php?201143-Need-some-sidebox-and-sql-help

If I want to display the box I created called main_sidebox on the main page and no other page, what file do I edit? I also have some EZ-Pages that I have created and corresponding sideboxes. How do I get the specific sidebox to display for that particular ez-page?

16 Oct 2012, 2:22 AM
#2
prymlurg avatar

prymlurg

New Zenner

Join Date:
Oct 2012
Location:
Haysville, Ks
Posts:
13
Plugin Contributions:
0

Re: Displaying sidebox on one page

I got the main_sidebox to display on the main page only. Now I need to assign sideboxes to particular ezpages. How do I reference the ezpage I want within this code? ```
if ($this_is_home_page)

16 Oct 2012, 3:01 AM
#3
prymlurg avatar

prymlurg

New Zenner

Join Date:
Oct 2012
Location:
Haysville, Ks
Posts:
13
Plugin Contributions:
0

Re: Displaying sidebox on one page

Found it.

(in_array($ezpage_id,explode(",",'17')))

17 indicates the ezpage id number.