Hi,

I want to output filefield download links as (image) buttons. Is the best solution to override the theme function? If so, how can do I do that? Custom module, in theme layer, copy function, etc?

Help appreciated!

Victor

Comments

kayograco’s picture

I worked it out by setting the display of the field as "image linked to file" and the css of the anchor field as {display:block; width:(width of image); height:(height of image); background:url("path/of/image");}.

This is not the best solution because I cannot insert a tooltip over the image. Need help on that!

quicksketch’s picture

Status: Active » Fixed

You can override theme_filefield_item() in your template.php file. See the handbook page on overriding themable output: http://drupal.org/node/457740.

MrVictor’s picture

Ok, thank you!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.