We are implementing customatisation,
but I encounter a problem to configure them.
As recommanded in the WIKI, we do not want to modify the
Alfresco XML files, but we prefer to use your "extension pattern".
I want to insert a new "custom action" and to extend an existing "actions-group":
—————– File: extension/web-client-config-custom.xml
<config evaluator="string-compare" condition="Actions">
<actions>
<action id="action_AttachSendMail">
<permissions>
<permission allow="true">Read</permission>
</permissions>
<label-id>attachSendMail.title</label-id>
<image>/images/icons/create_post.gif</image>
<action>dialog:action_AttachSendMail</action>
</action>
</actions>
</config>
<config evaluator="string-compare" condition="Actions">
<actions>
<action-group id="space_details_actions">
<action idref="action_AttachSendMail" />
</action-group>
</actions>
</config>
=> But this does not work.
=> If I insert them directly in the "web-client-config-actions.xml" it works.
I've searched the source code and I've found a "ActionsElementReader"
which is effectively only triggered by the "<actions>" tag:
— file: web-client-config.xml
<element-readers>
<element-reader element-name="actions" class="org.alfresco.web.config.ActionsElementReader" />
…
The "ActionsElementReader" loops on sub-elements (action*, action-group*)
but never request an "extension configuration point"
(like: Config wizardCfg = svc.getConfig("Content Wizards"); )
=> how can I define custom action as "extension" ?