How to change the icon of new folder type in Share?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2010 02:21 AM
Hi,
It is quite easy to define new folder icon image for new folder type (with parent cm:folder) in Alfresco Explorer. But I don't know how to do the same in the document library of Alfresco Share. Could you give a hand?
This file
C:\Alfresco\tomcat\webapps\share\components\documentlibrary\documentlist.js
is used to render the document list in Share. Do you have any hint for me to add new icon image to the custom folder type?
Thank you
Barry
It is quite easy to define new folder icon image for new folder type (with parent cm:folder) in Alfresco Explorer. But I don't know how to do the same in the document library of Alfresco Share. Could you give a hand?
This file
C:\Alfresco\tomcat\webapps\share\components\documentlibrary\documentlist.js
is used to render the document list in Share. Do you have any hint for me to add new icon image to the custom folder type?
Thank you
Barry
Labels:
- Labels:
-
Archive
8 REPLIES 8
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2010 08:45 AM
Same question for me…
Anyone can help?
thank you
Anyone can help?
thank you

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2010 12:56 PM
you can replace the image, this is fastest solution and if you find some better you can act smart

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2010 02:42 PM
Take a look at how we did it for the DoD 5015.2 module. It's in modules/dod-5015-share in SVN.
Thanks,
Mike
Thanks,
Mike

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2010 05:26 AM
Hey Mike, could you please explain what u guys did there since I dont get it actually. I just wanna change the folder icons in the treeview (tree.js / tree.css) but it seems like I miss sth
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2010 09:27 AM
You might have noticed I didn't change the tree icons, even for RM. They're currently a YUI sprite, around 8000 pixels high - not individual images.
Whilst it's possible to override the CSS classes assigned to each treenode and hence override to new sprites, this isn't something I investigated in any great depth.
Thanks,
Mike
Whilst it's possible to override the CSS classes assigned to each treenode and hence override to new sprites, this isn't something I investigated in any great depth.
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2011 02:03 PM
Hi all,
has anyone achieved this in Share?
I need to change the icon only for a particular new folder type…
thanks
Alex
has anyone achieved this in Share?
I need to change the icon only for a particular new folder type…
thanks
Alex

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2011 08:58 AM
A way to achieve this by updating the function DL_renderCellThumbnail in documentlist.js (and -min.js)
Replace
Where cg:book is a new type of folder and mybook-32.png is a new image
Replace
if(type == "folder"){ elCell.innerHTML = '…..documentlibrary/images/folder-32.png…}
Withif (record.nodeType == "cg:book") { elCell.innerHTML = '…..documentlibrary/images/mybook-32.png…}else if(type == "folder"){ elCell.innerHTML = '…..documentlibrary/images/folder-32.png…}
Where cg:book is a new type of folder and mybook-32.png is a new image
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2011 01:03 PM
A way to achieve this by updating the function DL_renderCellThumbnail in documentlist.js (and -min.js)
Thank you very much for this!
