开发者

How do I hide the navigation menu in Plone on the home page

开发者 https://www.devze.com 2023-03-14 17:02 出处:网络
I\'d like to 开发者_JAVA技巧remove the navigation portlet just when someone is viewing the home page.Is this possible?I\'m using Plone 2.5.3, Zope 2.9.8.Would I need to upgrade to a newer Plone to do

I'd like to 开发者_JAVA技巧remove the navigation portlet just when someone is viewing the home page. Is this possible? I'm using Plone 2.5.3, Zope 2.9.8. Would I need to upgrade to a newer Plone to do that? I've tried to go to Plone 3 and 4 but I couldn't get the site to start with the old data.

thanks


Enter the ZMI and edit the properties tab of your Plone site. If you like to have the navigation portlet in any folder, enter the folder via ZMI and add a lines property "left_slot". Set the value as in the level of your Plone site.

This advice is only for an old Plone like yours. Newer Plones are managed by the portlet manager.


You should be able to target a specific page easily enough by simply hiding it with css. Plone applies a body css class to every page with the id of the top level item.

For instance, if you have a object "front-page" that is your default view for the home page, you could remove the navigation by using a css rule like:

.section-front-page div#[navigation-id]{ display:none;}

Not sure if Plone 2.5 allows you to block parent portlets in specific contexts--that's the best way to do it and the way it's done with later versions of plone.

0

精彩评论

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