使用z3c.jbot覆盖Plone document_view
我正在使用 Plone 4.0.7 & Mac OSX 10.7 上的 Python 2.6.7:
在站点的特定部分中,我需要稍微调整 document_view,因此我想向 document.pt 添加条件。我正在尝试使用 z3c.jbot 来执行此操作,但由于某种原因我的更改没有显示。我使用文件名 Products.CMFDefault.browser.templates.document.pt 来覆盖该文件。我一直使用 z3c.jbot,我真的不确定为什么这不起作用,所以任何建议将不胜感激。
谢谢
I'm working with Plone 4.0.7 & Python 2.6.7 on Mac OSX 10.7:
I need to tweak the document_view just slightly when in a specific segment of my site so I want to add a conditional to the document.pt. I'm trying to use z3c.jbot to do this but for some reason my changes aren't showing. I'm using the file name Products.CMFDefault.browser.templates.document.pt in order to override the file. I use z3c.jbot all the time and I'm really not sure why this isn't working so any suggestions would be greatly appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可能想覆盖(在皮肤层中)以下文件之一:
(plonetheme/sunburst/skins/sunburst_templates/ main_template.pt 或
产品/CMFPlone/skins/plone_templates/main_template .pt)
I think you probably want to override (in a skin layer) one of these files instead:
(plonetheme/sunburst/skins/sunburst_templates/main_template.pt or
Products/CMFPlone/skins/plone_templates/main_template.pt)