문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top