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.
我需要有两个导航 portlet(在 plone4 中):
一个“经典”(具有在 plone_control_panel / 导航中定义的设置)
另一个在 navtree portlet 实例中定义的类型
建议?
维托
一些技巧和想法。
将现有的导航 portlet 代码复制粘贴到新的 portlet。
然后你需要调整它的“导航树策略”,让它只收集你定义的内容类型
http://collective-docs.readthedocs.org/en/latest/misc/navigationtree.html#creating-a-custom-navigation-tree
如何创建 z3c.form 词汇表来挑选内容类型:
http://collective-docs.readthedocs.org/en/latest/functionality/controlpanel.html#content-type-choice-setting