cancel
Showing results for 
Search instead for 
Did you mean: 

Add action to group(s)

erwinv
Champ in-the-making
Champ in-the-making
Hi,

I have some issues getting a custom action to show up in various action groups. The custom model I created has a custom type and a custom aspect (for adding to spaces). Adding the custom dialog to the action groups for content items of the custom type seems to work fine, as does adding the action to the space_details_action action group. Adding the same action to other space-related action groups doesn't show anything though. Here's the relevant excerpt from web-client-config-cusom.xml:


    <config evaluator="node-type" condition="myns:customType">
        <actions>
            <action id="edit_customType">
                <label>Edit Custom Type Content</label>
                <image>/images/icons/edit_icon.gif</image>
                <action>dialog:customDialog</action>
                <action-listener>#{BrowseBean.setupContentAction}</action-listener>
                <params>
                    <param name="id">#{actionContext.id}</param>
                </params>
            </action>
           
            <action-group id="document_browse">
                <action idref="edit_customType" />
            </action-group>
           
            <action-group id="doc_details_actions">
                <action idref="edit_customType" />
            </action-group>
        </actions>
    </config>
   
    <config evaluator="aspect-name" condition="myns:customAspect">
        <actions>
            <action id="edit_customAspect">
                <label>Edit Custom Aspect Space</label>
                <image>/images/icons/edit_icon.gif</image>
                <action>dialog:customDialog</action>
                <action-listener>#{BrowseBean.setupSpaceAction}</action-listener>
                <params>
                    <param name="id">#{actionContext.id}</param>
                </params>
            </action>
           
            <action-group id="space_browse">
                <action idref="edit_customAspect" />
            </action-group>
           
            <action-group id="space_browse_menu">
                <action idref="edit_customAspect" />
            </action-group>
           
            <action-group id="browse_actions_menu">
                <action idref="edit_customAspect" />
            </action-group>
           
            <action-group id="space_details_actions">
                <action idref="edit_customAspect" />
            </action-group>
        </actions>
    </config>

The actions added to space_browse, space_browse_menu and browse_actions_menu don't appear in the client. The others, including the one added to space_details_actions, appear just fine. Any ideas?
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
Sounds strange, especially as some are working!

Try turning on debug for the actions component, you can uncomment the following line in log4j.properties (in WEB-INF/classes):

#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug

Post the debug output and we can see if there's anything obvious.