[support] URL attached to image.

Anthony tony at tony-mac.com
Thu Jun 14 02:20:51 UTC 2012


Thanks Jamie. I will try it out.

On Wed, Jun 13, 2012 at 5:33 PM, Jamie Holly <hovercrafter at 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 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 at 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 at 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 at 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 at 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*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120613/1c0e4a1d/attachment-0001.html 


More information about the support mailing list