Closed (won't fix)
Project:
Custom Formatters
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2011 at 15:12 UTC
Updated:
24 Jun 2015 at 14:13 UTC
Jump to comment: Most recent
Comments
Comment #1
rich_lang commentedFor anyone else struggling with this, my quick fix was to assign a class to the [filefield-view] token in my custom formatter HTML code (basic mode), and then use CSS to target the class and hide the 'a' link.
Code was:
.filefield-view-icon-only .filefield-file a {display:none; visibility:hidden;}It would still be nice to have a token for the icon though :-)
Comment #2
7h3kk1d commentedIs there any way to have the icon link to the file?
Comment #3
rich_lang commentedYou could try wrapping a href tag around the icons replacement token, and set the link with another replacement token.
Comment #4
zjoriz commentedDid you find anything out in the meantime? Did you find a valid replacement token for the file icon?
Same problem here: I've seen the icon get called successfully by strings of php code inserted in a custom php field for Views:
But I'm not skilled enough to use advanced view for custom formatter.
The thing I want is basically quite simple: I wish to use the link exactly like it appears in normal filefield output, but with a target="_blank" added to the link. After way too much hours of searching fiddling I got the view field working. After another half a day I've ended up with a custom formatter field for the full node, which does the same. However, the icon is missing.
Comment #5
funkytraffic commentedThis might help.
Comment #6
funkytraffic commentedFor 6 this might help, for 7 I donnot know.
Comment #7
decipheredI am no longer supporting any Drupal 6 modules, as such I am marking this as closed.
However, I am open to taking on co-maintainers, if you wish to do so contact me via me D.o contact form.