Issue Bug Closed

#23204Link on first image is wrong if there are multiple images and links in one content element

taywa gmbh 07/16/10, 10:08 updated 08/14/11, 14:54

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.