Ticket #1522 (new enhancement)

Opened 13 years ago

Last modified 13 years ago

Add the "selected" CSS class to action links in Actions Portlet when the action url matches the context_url

Reported by: ogrisel Owned by: jmorliaguet
Priority: P3 Milestone: CPS 3.5.7
Component: CPSPortlets Version: TRUNK
Severity: normal Keywords:
Cc:

Description

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.

Change History

comment:1 Changed 13 years ago by sfermigier

  • Milestone changed from CPS 3.4.1 to CPS 3.4.3
Note: See TracTickets for help on using tickets.