Bug #23204
closedLink on first image is wrong if there are multiple images and links in one content element
0%
Description
If there is a content with multiple images (of type "textpic" or "image") and there are several links (pid's or url's) as csv in the image_link field, the first image gets a random link out of all available links in the csv.
Reproduce:
1. create image content element
2. add 4-7 images
3. define a pid als link for every image
4. save and view
5. reload a cupple of times to see the first link change
the reason seems to be that the pointer IMAGE_NUM_CURRENT gets ommited/trimmed/emptyed if it is at [0].
this only happens within the ...imageLinkWrap.typolink object other uses of IMAGE_NUM_CURRENT (eg. in the caption are not affected)
if the following typoscript is added:
tt_content.image.20.1.imageLinkWrap.typolink.parameter.listNum.stdWrap.ifEmpty = first
the first link will be rendered correctly - but it will probably fail if not all pictures have links.
(issue imported from #M15146)
Updated by Mathias Schreiber over 14 years ago
Does not happen in trunk today.
Is any additional Typoscript involved?
Updated by Administrator Admin over 14 years ago
i had wrong links/similar behavior like Roman Abt described with typo3 in Version 4.4.0 - after the update to Version 4.4.1 it seems to work
Updated by taywa gmbh over 14 years ago
there was no typoscript involved, but a xclass for a "rand" value for listnum as suggested on:
http://bugs.typo3.org/view.php?id=3557
...which hasen't made it to the core since 4 years.
i think the xclass it wasn't a problem with php5.2 / typo3 4.3 but with php5.3 and typo4.4 it was.
Updated by Susanne Moog over 13 years ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
0) - TYPO3 Version set to 4.4
Closed as unable to reproduce with Core TYPO3.