Products.TemplateFields (1.2.5)
by
Olha Pelishok
—
last modified
2010-06-21
Released on 2010-06-10 by Blue Dynamics, Steve McMahon for Plone 3.0, Plone 4.0 under GPL - GNU General Public License available for All platforms.
Software development stage: stable
- Products.TemplateFields download link: http://plone.org/products/templatefields/releases
- Homepage of Products.TemplateFields: http://pypi.python.org/pypi/Products.TemplateFields/
Supplies an Archetypes field useful for editing and storing Zope Page Templates
This product provides two Archetype fields that store and render templates. There's the DTMLField for DTML templates and the ZPTField for ZPT templates.
Usage
-
Install as usual in your Products directory or as an egg.
-
Add this line to your custom Archetype to import the fields:
from Products.TemplateFields import DTMLField, ZPTField
-
In your schema, add DTMLFields and ZPTFields like this:
BaseSchema + Schema(( ...
DTMLField('oneField'),
ZPTField('anotherField'),
...
))