Project

General

Profile

Actions

Bug #23204

closed

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

Added by taywa gmbh over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-07-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions

Also available in: Atom PDF