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 #1

Updated by Mathias Schreiber over 14 years ago

Does not happen in trunk today.
Is any additional Typoscript involved?

Actions #2

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

Actions #3

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.

Actions #4

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.

Actions

Also available in: Atom PDF