excuse that last. Think before you write Tony.
On Wed, Jun 13, 2012 at 7:46 PM, Anthony 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 wrote:
Thanks Jamie. I will try it out.
On Wed, Jun 13, 2012 at 5:33 PM, Jamie Holly hovercrafter@earthlink.netwrote:
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...
Jamie Hollyhttp://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.comwrote:
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 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.comwrote:
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 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*