Enhancement proposal to the current Actions Portlet rendering.
Most of the time, action targets can be considered as views (panel views) on the published object they point to. It would be a great improvement if the Actions Portlet could be able to track the fact we are viewing the target of an action by adding the "selected" class to the <li/> tag of the rendered html of portlets that display that action.
They are two open issues:
- how to set the cache parameters for the Actions Portlet to deal with that case?
currently the cache parameters for the Actions Portlet are 'actions:(categories)'
(one key per set of matching actions that match the portlet's categories field
value) + the current language. Should we add something like actions:(selected) to
compute a key that takes care of the currently selected action?
- how to handle CMF aliases redirections?
The REQUEST object does not currently track which CMF aliases were used to
compute the view of the context object.
Some actions can point to a CMF alias (view -> cpsdocument_view,
(Default) -> cpsdocument_view), whereas others are points directly to a page
template.