Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在不使用 z3c.jbot 的情况下覆盖 Plone 的原始 main_template,只使用 ZCML 指令(浏览器:页面?)。
有没有办法只使用 ZCML 覆盖默认的 Plone4 模板?
ZCML 可用于覆盖视图。
较旧的 Plone 模板,如 main_template.pt,使用 portal_skins 分层工具。
更多关于它在这里:
https://docs.plone.org/4/en/old-reference-manuals/plone_3_theming/buildingblocks/skin/layers/overview.html
您的插件需要 GenericSetup 配置文件
在 GenericSetup XML 中注册皮肤层
在 ZCML 中注册皮肤层
皮肤模板按照 portal_skins 属性选项卡给出的顺序被覆盖(您可以在 ZCML 部分完成后测试和管理 TTW)