A Plone plugin that add expand/collapse functionality to portlets.
Table of contents
Scope of this product is to make possible to add expand/collapse behaviour to Plone portlets programmatically without any modification to the portlet templates, or any needs to override its features.
This product is just a Javascript add-on that rely on native Plone's jQuery support.
collective.portletcollapser is useful when you have a lot of portlets in side columns. In this case the columns could be very long, and the users can loose some informations.
If we collapse some secondary portlets, we can gain some space and keep these informations available for the users. They only need to expand them.
This plugin store portlets status in browser's sessionStorage. This means that if the user expand/collapse certain portlets, the plugin save the status for current browser session. Opening a new tab generates a new session.
In your Plone configuration panel you'll find the new "Portlet collapser settings".
From this controlpanel you can enable a list of portlets with expand/collapse setting two fields:
- CSS selector: the CSS marker for a certain portlet. It could be a class or an id. For example .portletNavigationTree
- Portlet default state: could be expanded or collapsed
- Plone 3.3 (classic Plone theme)
- Plone 4.2 (classic Plone theme and Sunburst)
- Plone 4.3 (classic Plone theme and Sunburst)
- jQuery 1.3 or better
- plone.app.registry
Toggle configuration are stored in a JavaScript file that your browser and Plone portal_javascript tool will probably cache.
When changing configuration you can use the "Save and invalidate JS cache" button.
Developed with the support of:
All of them supports the PloneGov initiative.
This product was developed by RedTurtle Technology team.