[TYPO3-dev] injecting new attributes to the a-tag in CE IMAGES
Robert Wildling
robertwildling at gmail.com
Wed Mar 14 15:47:23 CET 2012
Hi,
I need to ask you for a tipp or typoscript - I hope someone can hel!
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
More information about the TYPO3-dev
mailing list