The Problem with imageLinkWrap.stdWrap is that it applies to different parts of the generated HTML, when you use it with imageLinkWrap.JSWindow=1 and with imageLinkWrap.JSWindow = 0.
The "code" posted in my original bugreport with the STDWRAP was just explanatory. It should emphasize the point where the stdWrap functionality is applied. One time it is applied to just the stuff right inside the a-tags, and once to everything including the a-tags.
The documentation of the tsref is not very clear to this either. It just says "Enable stdWrap for the image". But my intuitive understanding was, that it is intended to be applied on the stuff inside the link-tags, and not to the link as well.
What I am trying to do is this: add a custom <div> right after the <img> tag, but still inside the a-tags, which will make a little loupe icon on (or after) the image, when the image can be magnified.
The typoscript-code for this is:
Constants:
styles.content.imgtext.linkWrap.lightboxEnabled = 1
styles.content.imgtext.linkWrap.lightboxRelAttribute = lightbox[sb{field:uid}]
Setup:
tt_content.image.20.1.imageLinkWrap.stdWrap.innerWrap = |<div class="magnify_overlay"> </div>
Resulting in the following html-code:
<a href="…" title="…" class="lightbox" rel="lightbox[sb137]">
<img src="…" width="210" height="141" border="0" alt="…">
<div class="magnify_overlay"> </div>
</a>
I hope it is understandable, what was intended by submitting this patch. If not, please feel free to ask again :) Maybe we could also quickly discuss it in german, as I think a lot of the core dev people are from here too.