Hi all, I am updating a product and as part of that update I would like to use zpt for all of my presentation. I have googled for a howto on this subject but have not found one. I have set up the .zpt files and the forms work, but I can't access properties of the product. btw. I am new to ZPT! (I love dtml) Cheers Sean Kemplay __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com
On Mon, 2003-06-09 at 03:04, Sean K wrote:
I am updating a product and as part of that update I would like to use zpt for all of my presentation.
I have googled for a howto on this subject but have not found one.
The process is virtually the same. Instead of: ------ from Globals import DTMLFile [...] DTMLFile(path, globals()) ------ use: ------ from Products.PageTemplates.PageTemplateFile import PageTemplateFile [...] PageTemplateFile(path, globals()) ------ HTH, Dylan
Dylan Reinhardt wrote:
On Mon, 2003-06-09 at 03:04, Sean K wrote:
I am updating a product and as part of that update I would like to use zpt for all of my presentation.
The process is virtually the same. Instead of:
------
from Globals import DTMLFile [...] DTMLFile(path, globals())
------
use:
------
from Products.PageTemplates.PageTemplateFile import PageTemplateFile [...] PageTemplateFile(path, globals())
Please note that unlike DTMLFiles, PageTemplateFiles are restricted code (just as if they were in the ZODB). Cheers, - Michael Bernstein
participants (3)
-
Dylan Reinhardt -
Michael Bernstein -
Sean K