Skip to content

A JavaScript plugin that allows to add expand/collapse behavior to Plone portlets

Notifications You must be signed in to change notification settings

RedTurtle/collective.portletcollapser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Plone plugin that add expand/collapse functionality to portlets.

Table of contents

Introduction

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.

When you will like this?

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.

Detailed documentation

Basic configuration

In your Plone configuration panel you'll find the new "Portlet collapser settings".

Setup of Portlet collapser configuration

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

Versions/Dependencies

Plone

  • Plone 3.3 (classic Plone theme)
  • Plone 4.2 (classic Plone theme and Sunburst)
  • Plone 4.3 (classic Plone theme and Sunburst)

Dependencies

Cache controls

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.

Credits

Developed with the support of:

All of them supports the PloneGov initiative.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

About

A JavaScript plugin that allows to add expand/collapse behavior to Plone portlets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published