17 Sep
2002
17 Sep
'02
7 p.m.
Regarding the HTMLFile class, allowing you to store product dtml files on the local filesystem:
So my question is, is there a way to do a similar thing with the source of the file being a page template rather than DTML?
Sure thing, just like this: from Products.PageTemplates.PageTemplateFile import PageTemplateFile myZPT = PageTemplateFile("path/to/file", globals()) Which will take file.zpt from the filesystem just like HTMLFile() does for .dtml files... ;) Paul