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
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9271
Posted: Sat, 2009-11-07 19:35
Login or register to post comments
pumaka

Joined: 2007-05-14
Posts: 40
Posted: Sat, 2009-11-07 21:11

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

Login or register to post comments
pumaka

Joined: 2007-05-14
Posts: 40
Posted: Sun, 2009-11-08 04:09

I see that "longdesc" picks up my IPTC titles. How can I transfer "longdesc" content to the ALT tag as well?

Login or register to post comments
pumaka

Joined: 2007-05-14
Posts: 40
Posted: Sun, 2009-11-08 04:41

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?

Login or register to post comments
pumaka

Joined: 2007-05-14
Posts: 40
Posted: Sun, 2009-11-08 06:15

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.

Login or register to post comments