Hi,
I just changed line 499 from
$imagepath = drupal_get_path('module','filefield') .'/ico/'. $ext .'.png'; </code
which generates URLS like /node/NID/module/filefield/ico/pdf.png
to
<code> $imagepath = '/module/filefield/ico/'. $ext .'.png';
I realize that this isn't the best way of going about it but it's working for me now
(Sorry, i haven't learned yet how to write a patch, i will soon.)
Also, sorry to state the obvious but for now the /ico/ folder must be created and populated manually.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | ico.zip | 3.17 KB | kevinwalsh |
Comments
Comment #1
kevinwalsh commentedOops, that should have read
$imagepath = drupal_get_path('module','filefield') .'/ico/'. $ext .'.png';which generates URLS like /node/NID/module/filefield/ico/pdf.png
to
$imagepath = '/modules/filefield/ico/'. $ext .'.png';Comment #2
kevinwalsh commentedIs there a plan to get the file icons to appear on the View page (currently they only appear on the Edit page)?
Comment #3
kevinwalsh commentedHere is a folder with some icons. Drop this into your modules/filefield/ folder
Comment #4
jpetso commented#146784 has a better solution to this issue, even if I don't consider the initial comment/patch clean enough to be committed. I think this issue can be closed as "duplicate".