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

taishi
Champ in-the-making
Champ in-the-making
Hello, just a new user of Alfresco here, does anyone know if how could i show a thumb of an uploaded file if i will choose the option at the Document Library on Detailed view?
Because it just shows the Gear icon instead of a screen shot like of the File uploaded. I think there's a filetype issue but i don't know how to fix this one. Cos almost all files that are being uploaded are MS Office 2010 files already. So it's kinda a docx file. Please can someone lend a help. Thanks in advance.

volkerlux
Champ in-the-making
Champ in-the-making
Hello,

I'd like to give this topic a bit attention again. My question is: where are the (share) filetypes defined, in special how are the *-16.png *-32.png icon files assigned to the documents. The naming-convention of the files seems to be "[FILEXTENSION]-file-16.png". So it occured to me: "Alfresco extracts the extension-string of an file and automatically looks for an .png file named with this extension, if true, the file gets the according icon, if false the file gets the generic icon". Am i right with this method are is it done otherwise?

In which script or xml are the filetype and icon assocations constructed? I tested to name a new filetype - e.g. "indd-file-32.png" - and put it in "tomcat6/webapps/share/components/images/filetypes/" where the other filetypes are stored and naively thought it would be assigned automatically - this was unfortunatly wrong.

I'm thankful for any help or tip!

regards,
Volker