wolfrevo
wolfrevo

Reputation: 7303

How to override .cpt (Custom Form Controller) templates in diazo?

I want to override Plone's contact-info template in a diazo based product. The contact-info is a .cpt (Custom Form Controller Template).

The recommended approach to customize .pt files for Plone 4 is to use z3c.jbot.

Is it possible in diazo to override .cpt files in a similar way like .pt files?

Upvotes: 2

Views: 234

Answers (1)

Lennart Regebro
Lennart Regebro

Reputation: 172239

I'm assuming your "diazo-based product" is a design for Plone. The answer is that yes, that product can override the cpt, and the best way to do that is to use z3c.jbot.

Diazo in itself has no possibility to override templates. It works purely on the HTML that the template renders to. But there isn't any problems in including both a Diazo-based design and other features such as template overrides in the same product.

Upvotes: 3

Related Questions