Closed (fixed)
Project:
ImageCache
Version:
6.x-2.0-beta10
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2010 at 14:40 UTC
Updated:
2 Jun 2012 at 23:27 UTC
Hi
I'd like to use the Node title as the Alt tag of an imagecache image.
Is it possible?
Tom
Comments
Comment #1
velocis commentedI had a requirement for one of my sites to render all ALT tags on images with the node title. The site used a combination of drupal taxonomy rendered content and views rendered content.
Found the function theme_imagecache_formatter_imagelink in /imagecache/imagecache.module.php
and after the section
and added the following:
It now generated alt tags for both views and other content
I also applied this same method to two other functions within the same file
- theme_imagecache_formatter_linked
- theme_imagecache_formatter_imagelink
Comment #2
Branndon commentedLogged in just to say thanks! This helped me.
Comment #3
fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.