You are here: Home Plone products Products.TemplateFields

Products.TemplateFields (1.2.5)

1
by Olha Pelishok last modified 2010-06-21
0.0
0.0
0.0
0.0
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
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

  1. Install as usual in your Products directory or as an egg.

  2. Add this line to your custom Archetype to import the fields:

    from Products.TemplateFields import DTMLField, ZPTField
  3. In your schema, add DTMLFields and ZPTFields like this:

    BaseSchema + Schema(( ...
    DTMLField('oneField'),
    ZPTField('anotherField'),
    ...
    ))
Document Actions
Powered by Plone