[support] Displaying img src without rendering image

Steve Edwards killshot91 at gmail.com
Thu Sep 16 06:08:02 UTC 2010


I have a use case where in a View I need to display the code for a link to an image so that it can be copied and pasted elsewhere.  The field is just an imagefield and the link points to an imagecache derivative image.  The problem we're having is displaying the src value for the image without rendering the image itself.  An example of what we need to do can be seen at http://www.magazineimpulse.com/banners3.  The middle column was generated using the "Rewrite the output of this field" option in views with the following code:

<a href="http://www.magazineimpulse.com/spin" target="_blank"><img src="[field_image_cache_fid]"alt="spin" title="spin" border="0" ></a>

Is there a way I can render he entire link without the image being rendered?

Thanks.

Steve


More information about the support mailing list