10-27-2016 06:40 AM
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
10-03-2017 07:43 AM
Hi, sorry to bother you , have you resolved this issue?
10-03-2017 04:10 PM
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.
10-04-2017 03:36 AM
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 ?
10-05-2017 02:53 PM
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.
10-06-2017 06:15 AM
ty work like a charm now
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.