开发者

Plone 4 Navigation Portlet, show only in non-folderish children

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 P开发者_开发百科ages 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


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:

  1. add the navigation portlet in the parent folder
  2. set the initial level to 1. If child pages don't diplay the portlet check if they block the parent portlet acquisition.
  3. go to every child folder and block the portlet acquisition. If the number of child folder is hight, you can programmatically block the acquisition
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜