Hi,

I posted this message some days ago in the wrong forum; here it should be right; sorry!)

I am looking for a way to inject new attributes to the Image link wrapper, or in general to a typolink script.

The intergration of the photo gallery "Lightview" requests special a-tag attributes like data-lightview-group, data-lightview-title etc.

All the wrapping can easily be done by manipulating the CE IMAGES, which shall be used. The titleText should be mapped to data-lightview-title, the caption to data-lightview-caption. This line at least groups the images together:

tt_content.image.20.1.imageLinkWrap.typolink.ATagParams.dataWrap = class="lightview" data-lightview-group="{field:header}" data-lightview-title="{field:titleText[current]}" data-lightview-caption="{field:imagecaption}"

...but of course on title of one picture suddenly holds all the titles that where entered in the respective field.

Can the altText be assigned to another attribute, holding the correct reference to the caption and other text snippets of a picture? How would you solve that problem?

Thank you!
Robert
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to