Ticket #9285 (closed PLIP: fixed)
Show blocked portlets in management interface
|Reported by:||igbun||Owned by:||igbun|
Description (last modified by igbun) (diff)
Proposer: Ricardo Alves
The current interface for blacklisting portlet categories isn't much helpful, mostly because the user can't actually see what portlets he is blocking.
The current implementation of the portlet management screen only shows the portlet assigned to the current context and, since Plone 3.3, also displays the inherited portlets (if not blocked). Additionally, this screen gives the user the ability to block categories of portlets, which include:
- portlets being inherited from the parent container;
- group portlets;
- content type portlets;
It is hard to the user to know exactly what we wants to block. If, for example, the user is not a site administrator, he won't be able to distinguish between group and content type portlets, without some try-and-error process.
Change the portlet management screen to show all portlets, including the ones that are blocked. This way users are be able to see what's being blocked with a whole category and also the ones that are being inherited.
Portlets which are being blocked should be easily identified, e.g. using a different background color (gray), suggesting that the portlet is disabled.
The implementation requires changes in plone.app.portlets. More specifically in class ContextualEditPortletManagerRenderer (at plone.app.portlets.browser.editmanager) and template templates/edit-manager-contextual.pt.
Based on the blacklisting information, this view knows which categories are being blacklisted and so it applies a different style, markup and options to portlets accordingly.
This is essentially a presentational improvement. The required changes won't break existing functionality.
Documentation changes will be necessary, but won't be critical.
- New release of plone.app.portlets to include the required changes, with an improved portlet management screen, showing all portlets, even the blocked ones (e.g. in gray), grouped by categories.
- Updated documentation.
- Ricardo Alves (igbun)
There is a working implementation at branch plip9285-show-blocked-portlets
Still needs more testing, though. Also, some trivial CSS needs to be added in CMFPlone to differentiate the blocked portlets.