Custom portal tabs for Plone folder that are INavigationRoot marked
Project description
Introduction
This product change the Plone behavior that manage portal tabs. Installing this will change nothing in your Plone site, but gives you a way (through ZMI) to change the way used for obtaining those links in Plone subsites.
In Plone 4, when a folder is marked as INavigationRoot, the folder become more or less a subsite.
By default, standard portal tabs links are ok (link to the home page, followed by auto-generated tabs taken loading all first level subsection of the site or subsite), but if you customized portal tabs adding new ones you will see those new tabs also in subsites.
Also, you have no way to see custom portal tabs links only in the subsite.
Customize your tabs
This product will change this behavior. If you want to have some additional portal tabs in a folder with id “my-subsection” that you marked with INavigationRoot, you simply need to add to the portal_actions tool a new “CMF Action Category” with id “portal_``my_subsection``_tabs” (folder id will be normalized to use only simple character and “_” character).
Will be kept this order:
Plone site default portal tab 1
Plone site default portal tab 2
…
Subsite portal tab 1
Subsite portal tab 2
…
Auto generated tabs (if enabled)
Dont’ want to inherit?
If you don’t want to see also portal tabs defined for the Plone site, simply add a ZMI boolean property in your CMF Action Category, naming it block_inherit and putting its values to True. In this way you’ll see only tabs defined in the subsite.
If you don’t provide this property (default) or put it to false, you will continue seeing also portal tab links.
Additional products
About subsites
This product has been develop for additional needs of redturtle.subsites, but can be used outside the project itself.
Don’t want to use ZMI?
You can rely on collective.portaltabs if you want a user friendly interface for managing portal tabs (of the root site or subsites) from Plone.
Credits
Developed with the support of Rete Civica Mo-Net - Comune di Modena; Rete Civica Mo-Net supports the PloneGov initiative.
Changelog
0.1.0 (2011-07-29)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for collective.navroottabs-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a358717100594a608c41dee62d8c9afb877912cf558cf6fdce32e39fef960fe4 |
|
MD5 | 6e0c5d4f72ef7c895a30bc0b91fdea02 |
|
BLAKE2b-256 | dc190c03345d763207918942a66fbae39b46997f52b8158e271f221e02d2b9ba |
Hashes for collective.navroottabs-0.1.0-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | cae33a10f266c79c3a915a515bdaa86dd68da33de505a81ee6b094b16eb0e7d3 |
|
MD5 | dff9cf2365f35b0ff0153254592d279e |
|
BLAKE2b-256 | c920b959fe29ecc9c4c70ada2b68f654783bcbb5b32b62748d74fdf2116494c8 |