Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It'd be nice to easily wrap the icon shown for a file in Views with a link to the file.
Could we extend filefield_handler_field_icon
from views_handler_field_file
(instead of views_handler_field
) to get that "Link this field to download the file" option?
Comment | File | Size | Author |
---|---|---|---|
#2 | filefield-views_icon_link-1712978-2.patch | 2.22 KB | jeffschuler |
#1 | filefield-views_icon_link-1712978-1.patch | 960 bytes | jeffschuler |
Comments
Comment #1
jeffschulerComment #2
jeffschulerHave to take care of rendering, too.
Comment #3
quicksketchUnfortunately this functionality does not exist in Drupal 7, so adding it results in a feature regression for upgrading users. If a similar feature were introduced into Drupal 7 core, I would take the backport here, but I think it's unlikely at this point that such a feature would be added to D7.
Comment #4
pwolanin CreditAttribution: pwolanin as a volunteer and at Acquia commentedbug fixes only now