By Anonymous (not verified) on
Hello,
I need to link an image to a URL. The image and URL will both be user generated when they create the node. Views will handle the display of the node in menus, etc. But when you are looking at the full node view (ie, no views module involved), clicking on the image will take you to the user-generated URL.
I'm having trouble finding the answer to this one, though it doesn't seem like it should be too complicated. Thanks for the help.
Comments
Answer
Well, we figured it out. Or at least one way to do it, anyway.
In your chosen content type, you create two new CCK field- Image and URL (using the CCK plugin modules of your choice). Combining them is the harder part, which we did inside of the theme. We created a new tpl.php file specific to the content type, and changed the output of $content. Here's the basic code we used. And an example: http://veteranscorp.org/content/saboc-workshop