cancel
Showing results for 
Search instead for 
Did you mean: 

icon for multi-select not appearing

phani27
Champ in-the-making
Champ in-the-making

Hi ,

Kindly help me with an issue I have been struggling with for days on end.

I have added a new action item in the "Selected Items..." menu on the document library toolbar. The action appears fine except for the icon which is not displayed.

here is the code extract from share-config-custom.xml:

<multi-select>

   <action type="action-link" id="onActionEditMultipleDocumentMetadata" icon="edit-multiple" asset="document" permission="Write" label="Edit Multiple" />

</multi-select>

I have accordingly placed an icon under tomcat/webapps/share/components/documentlibrary/actions/edit-multiple-16.png.

This didn't work. So I even tried placing the icon under tomcat/webapps/share/images/edit-multiple-16.png. But no success.

Kindly advise.

Thanks,

Phani

5 REPLIES 5

4535992
Star Collaborator
Star Collaborator

Hi, sorry to bother you , have you resolved this issue?

douglascrp
World-Class Innovator
World-Class Innovator

Hello.

In my case, I have a customization when I did the following:

<action type="action-link" id="onActionMergePdfs" icon="merge-pdfs" label="menu.selected-items.merge-pdfs" />

Then I defined a custom css file, where I have this:

.toolbar .onActionMergePdfs
{
      background-image: url(actions/merge-pdfs-16.png);
}

As you can see, what defines the icon is the action id and the css selector.

The icon file is placed into the folder called actions, relative to the css file.

Hi sorry to bother you, douglas, i must doing something wrong with your suggestion, can you share to me the paths (for extensions module) of the custom css file ? i use this piece of code for import the css . but i'm not sure is the right method:

the /src/main/amp/config/alfresco/web-extension/site-data/extensions/extensions-module.xml

.............

<config evaluator="string-compare" condition="DocLibCustom">
                    <dependencies>                      
                        <js src="/org/alfresco/components/documentlibrary/custom-doclib-actions.js" />
                        <css src="/org/alfresco/components/toolbar/custom-toolbar.css/">
                    </dependencies>
                </config>

......................................

so the css file must be in /src/main/amp/config/alfresco/web-extension/site-webscripts/org/alfresco/components/toolbar/custom-toolbar.css and the image in the /src/main/resources/web/actions/merge-pdfs-16.png ?

douglascrp
World-Class Innovator
World-Class Innovator

The paths you used for are wrong.

You should have something like 

/src/main/resources/META-INF/resources/org/alfresco/components/toolbar/custom-toolbar.css

/src/main/resources/META-INF/resources/org/alfresco/components/toolbar/actions/merge-pdfs-16.png

Another thing to pay attention is if your dependencies section is being loaded.

If that is the case, you should be getting some 404 errors in the web browser console.

ty work like a charm now