[TYPO3-english] Injecting new attributes to link tag

Robert Wildling robertwildling at gmail.com
Mon Mar 19 18:44:29 CET 2012


YOU ARE MY MOST FAVOURED FRANCOIS I KNOW!!!!

Thank you thank you thank you!!

I actually was just about to post my solution, which is the same as 
yours and which I found because of your explanation only!!! You tought 
me a lot and gave me a good insight into TS. Thank you!!

All i did different was changing the double quotes do single quotes:
10.noTrimWrap = | data-lightview-caption='|'|

and
10.stripHtml = 0

That enables the use of HTML Tags ( which renderes double quotes eg when 
using a-tags for links), which then show nicely in the gallery. Of 
course they most probably aren't W3C compatible - I didn't check that yet...

Francois - You are my Hero!!!
THANK YOU VERY VERY MUCH!



Am 19.03.12 14:18, schrieb François Suter:
> Hi Robert,
>
>> Everything works fine as long as the Images link to themselves. But as
>> soon as I fill in the "Links" field in the "Behavior" field with some
>> other images , the links will not be generated anymore.
>
> What a surprising behavior ;-) I've got it working, but that was a tough
> one. As you found out indeed, when the image does not link to itself,
> only the "typolink" property of "imageLinkWrap" is used. This is
> actually more or less what is stated in the TSref, but not in a very
> understandable way.
>
> So your initial idea was good, but I had changed it because I was
> linking to the images themselves (what a confusion!). Here's the code
> that works for me:
>
> tt_content.image.20.1.imageLinkWrap.typolink.ATagParams.cObject = COA
> tt_content.image.20.1.imageLinkWrap.typolink.ATagParams.cObject {
> 10 < tt_content.image.20.1.altText
> 10.noTrimWrap = | data-lightview-caption="|"|
> }
>
> HTH
>



More information about the TYPO3-english mailing list