You don't set that. It's either going to link to the node or the image source file. Those are all set in the image module and don't supply a user interface to change them.
Have you checked out this module?
http://drupal.org/project/linkimagefield
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 6/14/2012 6:48 PM, Anthony wrote:
I have been exploring possibilities here. I created a new content type and am at the manage display screen .There I have a possibility, for the image field, under the format column to "link image to" either file, content or nothing. When I link to content or file and view the content type I can see that there is a link on the image but I don't know where to set that - hopefully url in my case. Thanks Tony
On Wed, Jun 13, 2012 at 7:51 PM, Anthony <tony@tony-mac.com mailto:tony@tony-mac.com> wrote:
excuse that last. Think before you write Tony. On Wed, Jun 13, 2012 at 7:46 PM, Anthony <tony@tony-mac.com <mailto:tony@tony-mac.com>> wrote: Won't it suffice to just use the link module? On Wed, Jun 13, 2012 at 7:20 PM, Anthony <tony@tony-mac.com <mailto:tony@tony-mac.com>> wrote: Thanks Jamie. I will try it out. On Wed, Jun 13, 2012 at 5:33 PM, Jamie Holly <hovercrafter@earthlink.net <mailto:hovercrafter@earthlink.net>> wrote: The easiest method would probably be to preprocess theme_image_formatter (D7) in your theme's template.php: function mytheme_preprocess_image_formatter($variables){ $variables['path'] = array( 'path' => '{...some path here..}', 'options' => '{any l() options you want passed if needed}', ); } You can also go the module route with a custom formatter, which would probably be the better route (you then get the ability to use it or not when setting your entity display): http://www.computerminds.co.uk/articles/creating-new-field-formatters-drupal-7 Jamie Holly http://www.intoxination.net http://www.hollyit.net On 6/13/2012 8:20 PM, Anthony wrote:So I have to create a tpl file for the node and then ? More info or references, if possible, greatly appreciated. On Wed, Jun 13, 2012 at 5:08 PM, Patrick Avella <me@patrickavella.com <mailto:me@patrickavella.com>> wrote: This can be easily done theming a node.tpl file if you dont want to use a view. sent from my phone. On Jun 13, 2012 8:06 PM, "LINDA ROMEY" <lromey@gmail.com <mailto:lromey@gmail.com>> wrote: I'm sorry but I'm not a programmer so I can't answer that question...is that something you can do with css? On Jun 13, 2012, at 5:44 PM, Anthony wrote:I don't want to change the site to use a view on that one page. When one goes to edit the image field in the content type I can "Click a token to insert it into the field you've last clicked.". But that is not what i want I think. Can I programmatically attach a url to a mouseover event on the image? On Wed, Jun 13, 2012 at 10:55 AM, Linda Romey <lromey@gmail.com <mailto:lromey@gmail.com>> wrote: Tony, I use a view to display the field and use the view's "rewrite the contents of this field" using tokens. It works very well. Linda On Wed, Jun 13, 2012 at 1:22 PM, Anthony <tony@tony-mac.com <mailto:tony@tony-mac.com>> wrote: Dear All, I have a content type with an image field. How can I attach an "<a href= " tag to an instance of this content type field? Thanks Tony -- */Anthony Stefan Maciejowski/* -- [ Drupal support list | http://lists.drupal.org/ ] -- [ Drupal support list | http://lists.drupal.org/ ] -- */Anthony Stefan Maciejowski/* -- [ Drupal support list | http://lists.drupal.org/ ]-- [ Drupal support list | http://lists.drupal.org/ ] -- [ Drupal support list | http://lists.drupal.org/ ] -- */Anthony Stefan Maciejowski/*-- [ Drupal support list | http://lists.drupal.org/ ] -- */Anthony Stefan Maciejowski/* -- */Anthony Stefan Maciejowski/* -- */Anthony Stefan Maciejowski/*--
*/Anthony Stefan Maciejowski/*