Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Add New Items to EZ page? Is it possible?

Add New Items to EZ page? Is it possible?

Locked

Views: 1,100

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
5 Jan 2009, 7:52 PM
#1
jmcqueen avatar

jmcqueen

New Zenner

Join Date:
Oct 2004
Posts:
75
Plugin Contributions:
0

Add New Items to EZ page? Is it possible?

hi all:

is there a way to add the 'new items' center box to the bottom of an ez page? my understanding is that ez page content is simply stored content in the db and is not able to handle an include. if this is possible, any help would be appreciated.

thx,
j

5 Jan 2009, 7:57 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Add New Items to EZ page? Is it possible?

To my knowledge you are correct...
EZ Page editor accepts only html and will not parse php

5 Jan 2009, 8:07 PM
#3
jmcqueen avatar

jmcqueen

New Zenner

Join Date:
Oct 2004
Posts:
75
Plugin Contributions:
0

Re: Add New Items to EZ page? Is it possible?

hi kobra:

thx. that's kinda what i am seeing. anyone else have any ideas? i'd really like to be able to do this (parse a php include inside an ez page)...

i've basically moved the entire front end of my site to ez pages and this would be a very nice feature. basically, i would like to be able to do an include like define_main_page.php. i can do it in the define pages, but not in ez pages.

j

5 Jan 2009, 8:33 PM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Add New Items to EZ page? Is it possible?

Then why not use define page?

There is a plugin that can help parse ezpage, but it is not recommended because of several security concerns.

5 Jan 2009, 8:38 PM
#5
jmcqueen avatar

jmcqueen

New Zenner

Join Date:
Oct 2004
Posts:
75
Plugin Contributions:
0

Re: Add New Items to EZ page? Is it possible?

how would i go about using additional define pages?

5 Jan 2009, 8:41 PM
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Add New Items to EZ page? Is it possible?

First you need to get the define page generator from the download section to create a new page.

Then, you can check the code from other parts of zencart that create the list of new products, duplicate that code in the appropriate parts of your new page (header_php.php should be used to query products, then the code to display them can be placed in the tpl file)