Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Only show sidebox on ez-page #x

Only show sidebox on ez-page #x

Locked

Views: 1,311

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
23 Nov 2006, 1:04 AM
#1
shk avatar

shk

New Zenner

Join Date:
Oct 2006
Posts:
62
Plugin Contributions:
0

Only show sidebox on ez-page #x

Hi!

Im trying to add an if-statement so that my sidebox only appears on say ez-page id#2.
This is all I could find after searching both the forum and wiki..

if ($current_page_base == 'index' and $cPath == '') {

That dosn't help though, for obvious reasons.
What would be the correct code to indentify if it's ez-page #2?

Sincerly,
/Per

23 Nov 2006, 4:03 PM
#2
shk avatar

shk

New Zenner

Join Date:
Oct 2006
Posts:
62
Plugin Contributions:
0

Re: Only show sidebox on ez-page #x

if ($_SERVER['QUERY_STRING'] == "main_page=page&id=12")
Did the trick.

/Per