cancel
Showing results for 
Search instead for 
Did you mean: 

Custom icons in file listings

oblivian
Champ in-the-making
Champ in-the-making
Hi,

Is it possible to use custom icons for the misc file types uploaded to the server? Now it is one generic icon/png (cogs) for all documents. I'd like to create custom icons for the most common file types uploaded to the server.

Please advice,

Thanks!
11 REPLIES 11

zladuric
Champ on-the-rise
Champ on-the-rise
By "misc" you mean for generic file types?
My guess is that you should edit or change the share/images/filetypes/generic-file-32.png file. Or do you mean add some new file type and icon?

oblivian
Champ in-the-making
Champ in-the-making
Yes, I mean to add more icons for file types. Now it is only one generic icon (cogs) for all files without a system generated thumbnail.

The default cog icon should also be changed since we get a lot of supprt from users thinking the system is "working" on the file. That icon I had already changed. Very strange choice for a default icon…

mikeh
Star Contributor
Star Contributor
The default cog icon should also be changed since we get a lot of supprt from users thinking the system is "working" on the file. That icon I had already changed. Very strange choice for a default icon…
Not really… the idea is that you configure custom transformers if you've got a particular type of file that can't be thumbnails out-of-the-box. The cogs indicate that a thumbnail is being generated. I agree that an enhancement could be to replace the cog icon with something else if a transformer failed or hasn't been configured.

What types of files are you mostly seeing this on?

Thanks,
Mike

oblivian
Champ in-the-making
Champ in-the-making
Hi Mike,

Well, most Office documents, text, images, and PDF's are thumbnailed. But we have many other documents on the server, like MS Project files, DWG's, EPS, PDF's with embedded 3D, audio files, etc. They all get the same cog thumbnail icon in detailed view. I'd like to be able to have unique thumbnails on all different file types documents common and uncommon…

Regards,

Oblivian

mwaychoff
Champ in-the-making
Champ in-the-making
my office would find this valuable as well.

orichaud
Champ in-the-making
Champ in-the-making
Well, II don't know if it is related or not, but I am trying to display a custom icon depending on the type. I managed to a have a custom form for my types, but I would like to render my types with a custom icon.
Is it possible to do it, for example using share-config-custom.xml?

mikeh
Star Contributor
Star Contributor
Well, II don't know if it is related or not, but I am trying to display a custom icon depending on the type. I managed to a have a custom form for my types, but I would like to render my types with a custom icon.
Is it possible to do it, for example using share-config-custom.xml?
No, sorry.

Mike

orichaud
Champ in-the-making
Champ in-the-making
OK, could you suggest an alternate option so that I can display the appropariate icon for a document/Space according to its exact type?
Regards.
Olivier

orichaud
Champ in-the-making
Champ in-the-making
OK, I created an ugly workaround: I modified documentlist.js.
I customized the cell thumbnauk rendering function and I had to add my own business logic based on the nodeType (found by calling oRecord.getData("nodeType")). The innerHTML is rendered differently when I detect my types.
I conducted the same changes in path.js. Everything works fine when I show the icon, things are tricky with the path because I just have the names of the folders, and not their types.
Olivier