Frage

I want to override the original main_template of Plone without using z3c.jbot, only using ZCML directives (browser:page?).

Is there a way to override a default Plone4 template only using ZCML?

War es hilfreich?

Lösung

ZCML can be used to override views.

Older Plone templates, like main_template.pt, use portal_skins layering facilities.

More about it in here:

https://docs.plone.org/4/en/old-reference-manuals/plone_3_theming/buildingblocks/skin/layers/overview.html

  • Your addon needs GenericSetup profile

  • You register skin layers in GenericSetup XML

  • You register skin layers in ZCML

  • skin templates are overridden in the order given by portal_skins Properties tab (you can test and manage TTW after ZCML part is done)

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top