I want to put a link for cck image field, the link should be note link that contain this image

Anybody know this? I will appriciated... thank you!~

Comments

mkalbere’s picture

You can have 2 cck fields one for image one for link and arrange them with http://drupal.org/project/contemplate

tom friedhof’s picture

One way that I have accomplished this is by putting the actual link in the Title field of the cck imagefield and then using the title as the link in the theme template.

<?php print l(theme('image', $field_image[0]['filepath'], $field_image[0]['alt']), $field_image[0]['title'], array(), NULL, NULL, FALSE, TRUE)?>
joachim’s picture

... a module with no code :/

challa.kamal’s picture

davidneedham’s picture

Does anyone know of a module similar to this, but in Drupal 6?

--
David Needham

joachim’s picture

You could file an issue requesting a D6 version, let the maintainer know there's interest.

KHofmeyer’s picture

I have interest in this as a cck option as well. Makes more sense to add it to the imagefiled cck module.