문제

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?

도움이 되었습니까?

해결책

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)

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