Forums / General Questions / how to refer to a specific ez page in code?

how to refer to a specific ez page in code?

Started by delia on 7 Jul 2016, 1:01 PM · Views: 432

Results 1 to 4 of 4
7 Jul 2016, 1:01 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

how to refer to a specific ez page in code?

I know I've used this before but it was a long time ago.

I want to include something only one ez page in the html_header:

if ($pageid = 7) {

It's obviously not $pageid but I cannot remember nor was I able to find in a search of the forum. Anybody know right off hand?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

7 Jul 2016, 1:14 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,123
Plugin Contributions:
56

Re: how to refer to a specific ez page in code?

I'm not totally familiar with the EZ-pages interface, but what about something like:

if ($current_page_base == FILENAME_EZPAGES && $[B]ezpage_id[/B] == 7) { }
7 Jul 2016, 1:24 PM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: how to refer to a specific ez page in code?

that ezpage_id was what I needed! Thanks!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

7 Jul 2016, 1:28 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,123
Plugin Contributions:
56

Re: how to refer to a specific ez page in code?

No problem; I'm happy to have helped.