Closed (fixed)
Project:
FileField
Version:
5.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
10 Oct 2007 at 21:20 UTC
Updated:
24 Oct 2007 at 22:12 UTC
Hello, we have a site in development at http://cogent-tech.com
I've set up a CCK field for products so they can upload files (like user manuals and movies) and have them display in a block. I was told that via the ICO folder in the Filefield module folder an icon would automatically attach to a corresponding file type.
I've uploaded 2 .pdfs on a test page here: http://cogent-tech.com/node/77
But as you can see the icons aren't showing up. We can't figure out why, so I'm submitting this as a Support Request because I can't be sure yet whether it's a bug or something we're doing wrong on this end.
Thanks for your help,
Jim
Comments
Comment #1
jpetso commentedHm, no, the images in ico/ are only added to the form widget on the node edit page, but not to the resulting node view output. I didn't think about this before, no idea if it would be a good idea or not. It would, however, be quite trivial to add such a picture by means of filefield theming - here's an untested, minimally modified version of theme_filefield() that you would insert into your template.php:
No guarantees, but I think this should sufficiently work (at least if you've got icons for all possible file types, otherwise there can be a missing image for some files).
Comment #2
(not verified) commented