Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Is it possible to get the img title and alt from the filename

  • Marco Götte
  • Marco Götte's Avatar Topic Author
  • Offline
  • New Member
More
14 years 3 months ago #35677 by Marco Götte
Hello,
I've got a question about the TITLE and the ALT of the img tag of the thumbnails.
Is it possible to generate the TITLE and the ALT of the IMG-tag from the filename of the picture?

Filename: picture-wood.jpg
like

<img src="images/picture-wood.jpg" title="picture-wood" alt="picture-wood">


and not the JTEXT from the language-file?

Thanks a lot!
Marco

Please Log in or Create an account to join the conversation.

More
14 years 3 days ago - 14 years 3 days ago #35678 by Odin Mayland
I too would like the thumbnail Title to come from the filename.  

For example, modellabs.com/joomla/media/k2/galleries/9/ABS-prototype.jpg would generate the title "ABS prototype" as the SIG pro thumbnail view.  It would have to automatically remove the - and the .jpg

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum