Hello all,

I am trying to create links using images or jpgs as opposed to text links. My goal is to emulate a similar page than http://cph2010.drupal.org/
If anyone knows how to do so, please feel free to comment and add some feedback on it as I am struggling to find out ways to do so.
Thanks,
T

Comments

jcfiala’s picture

Well, my suggestion would be to have an image field, and then a link field, and then use them together. If a view is appropriate for your display that would work nicely, because you can include a field as a hidden value and then use it's value as a link target for displaying the image field.

If that doesn't work, coming up with your own theme function would work as well, or working a bit with hook_nodeapi (with $op == 'view').

AFAIK, there isn't any automated way to connect a link field with an image field for display, but I'm willing to look at patches.

Tafa’s picture

Hey jcfiala,

Thank you very much for your prompt feedback. I'd say Option #1 is by far the easiest solution I can use here. By uploading a bunch of images on my server and tie them to a link field, I may be able to do what I want to achieve.
Thanks again for helping my out here.
T

nravens’s picture

I'm also trying to achieve this. Is there any other way?

I have a node-mycontenttype.tpl for my user generated content. I have two link fields and want to display image buttons to those links rather than just plain text.

How can I achieve this?

summit’s picture

Hi,
Is it possible to have the image still only as linkfield, and somehow add the image html around it to show it as a image with img src = the linkfield-content?

greetings, Martijn

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Thank you all for your efforts, but I'm sorry to say that the D6 version is no longer supported.