Closed (fixed)
Project:
Insert
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
8 Mar 2012 at 20:08 UTC
Updated:
20 Sep 2012 at 05:41 UTC
Jump to comment: Most recent file
It would be handy to be able to include the file mime type icon when inserting a file.
I suppose I could easily code this up as a standalone module, but that seems a bit overkill to simply provide an option to insert files including their file type icon.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | insert_icon_link-1473512-1.patch | 3.47 KB | willvincent |
Comments
Comment #1
willvincent commentedThis patch adds a new insert style 'icon_link' to provide this ability. Default output from the new insert-icon-link template mimics that of theme_file()
Comment #2
willvincent commentedComment #3
josaku commentedI've just been looking for the same feature. Patch in #1 worked for me. Thanks willvincent.
Comment #4
Golem07 commentedHi,
I have applied patch in #1 against the latest release (1.1) and it doesn't seem to work any more (nothing happens when you cklick insert). Style without the link option is still funtional though. Are there any additional steps I need to take or does this have to do withe changes since the dev release in march?
Thanks in advance!
Comment #5
nattyweb commentedI have the same issue as Golem07 - any update or advice on this please? This feature would be a brilliant addition and I hope we can get it working!
Thanks in advance
Martin
Comment #6
nattyweb commentedForget that request (#5): now working perfectly. Not sure why, but it is! Thanks for the patch.
Comment #7
Golem07 commented#maranjo
Have you done anything specific? I am still encountering the very same problem.
Comment #8
quicksketchThanks guys, this patch looks pretty good. If you guys can make a backport to D6 I'll commit it to both branches.
Comment #9
willvincent commentedCreated a new issue and supplied a patch with a D6 backport: #1774120: Include icon in inserted file link (D6 Backport)
Comment #10
quicksketchThanks @willvincent! Not many people would take this the extra mile. Committed to 7.x-1.x branch. Corresponding issue committed also.