Adding "ALT" text to thumbnail images on Album pages [RESOLVED]
|
pumaka
Joined: 2007-05-14
Posts: 40 |
Posted: Sat, 2009-11-07 15:14
|
|
I was able to add alt= and title= tags to the enlarged images on the Photo page, but can't figure out how to add the same to the thumbnails in album pages. Any ideas? Thanks! |
|
| Login or register to post comments |

Posts: 9271
http://gallery.menalto.com/node/36533
http://gallery.menalto.com/node/90979
http://www.google.com/search?q=title+alt&btnG=Search&hl=en&domains=gallery.menalto.com&sitesearch=gallery.menalto.com
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 40
Hello Nivekiam,
thanks for that, those threads helped me earlier, adding this "alt=$theme.item.description|markup" worked for the large images.
I should've been more specific - my image titles/ALT tags come from IPTC, not from the Description field in the gallery.
When I added "alt=1 longdesc=1" to the thumbnails it just showed the file name on mouseover, which is not what I'm after.
TIA
Posts: 40
I see that "longdesc" picks up my IPTC titles. How can I transfer "longdesc" content to the ALT tag as well?
Posts: 40
Ok, and here's something very strange - even if I don't add alt= or longdesc=, Long description is always included. Is there any way to get rid of it?
Posts: 40
In case anyone else needs to do the same, I edited these files:
core\classes\GalleryDerivativeImage.class
core\classes\GalleryPhotoItem.class
and just switched getTitle and getDescription for ALT and LONGDESC fields.
Since this is a core class, creating a /local directory won't do anything, so I just saved a copy of the original file.