Action Groups - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

Actions are grouped using the actionGroup elements. The type of node and also the view currently in use determines the actual group used. The group is calculated by the calculateActionGroupId() function in surf-doclist.lib.js and is designed to be overridden if many new and/or altered actions are required.

The action groups defined in a default installation are:

Action Group ID Default Usage
document-browse Documents on the browse page
document-details Document on the document details page
folder-browse Folders on the browse page
folder-details Folders on the folder details page
document-link-browse Links to documents on the browse page
document-link-details Links to folders on the document details page
folder-link-browse Links to folders on the browse page
folder-link-details Links to folders on the folder details page

The action groups are located in the <actionGroups> config container element with the following structure:

<actionGroupid>
    <action />  
</actionGroup>

where:

  • <actionGroup>: Action group config container element with the following attribute:
    • id: Unique action group ID
  • <action>: Action element with the following mandatory attribute:
    • id: Reference to action as defined in <actions> config section

Other actions properties can be overridden here, although it is recommended from a maintenance view to only override “simple” properties like the icon and label. These make it possible to reuse an action with document-biased icon and label to be used for folders.

Example config

<configevaluator="string-compare"condition="DocLibActions">
...
    <actionGroup id="folder-browse">
        <action index="100" id="folder-view-details" />  
        <action index="110" id="folder-edit-properties" icon="folder-edit-properties" />
        <label="actions.folder.edit-metadata" />
    </actionGroup>
</config>