AnsweredAssumed Answered

Custom Action extension problem

Question asked by sbroussi on May 16, 2006
Latest reply on May 17, 2006 by gavinc
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">
    <action id="action_AttachSendMail">
        <permission allow="true">Read</permission>

<config evaluator="string-compare" condition="Actions">
    <action-group id="space_details_actions">
      <action idref="action_AttachSendMail" /> 

=> 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-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" ?