Plone 4 导航 Portlet,仅在非文件夹子级中显示
入门信息:在 CentOS 5.5 上使用 Python 2.6.6 使用 Plone 4.0.7。
我有一个包含几个页面的文件夹,并且我希望在所有子页面上有一个导航 portlet,但在父文件夹上没有。我首先想到的如何做到这一点是将导航 portlet 添加到父文件夹,指向其自身,并将启动级别设置为 1。这适用于不在父文件夹中显示 portlet,但没有任何子页面显示portlet。我认为这是因为页面不是文件夹内容类型,因此起始级别不适用于它们。有谁知道我会从哪里开始寻找解决这个问题的方法?
谢谢
Starter Info: Working with Plone 4.0.7 on CentOS 5.5 with Python 2.6.6.
I've got a folder that contains a few pages and I want to have a navigation portlet on all of the child pages but not the parent folder. My first thought of how to do this was to add the navigation portlet to the parent folder, pointing to itself, and setting the start level to 1. This works for not showing the portlet on the parent, but none of the child Pages are showing the portlet. I assume this is because the Pages aren't a folderish content type so the start level doesn't apply to them. Does anyone know where I would start to look to create a work around for this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我可以确认这个问题。
问题似乎是,页面/文档不被识别为小节,而是被识别为包含文件夹的项目。
您可以反驳,如果您将文件夹添加到文件夹中,则导航将按您的预期工作。
作为解决方法,您可以使用 CSS 隐藏文件夹中的导航,例如:
.portaltype-folder .portletNavigation { 显示:无; }
I can confirm the issue.
The problem seems to be, that pages/documents are not recognized as subsections but as an item of the containing folder.
You can counterproof that, if you add folders to your folder, with them the navigation will work as you expect.
As a workaround you could use CSS to hide the navi on the folder with sth like:
.portaltype-folder .portletNavigation { display: none; }
实际上,您的方法是正确的方法:
Actually your method is the right method: