Project

General

Profile

Actions

Bug #24290

closed

Image position "Beside text" is handled in a slightly od way

Added by Mikkel Ricky over 13 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-05
Due date:
% Done:

0%

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

Description

When using image positions "Beside text, right" (tt_content.imageorient = 25) and "Beside text, left" (imageorient = 26) the header has to be placed in a position different from the position when using other image positions (e.g. "In text, right").

However, the typoscript for handling this is based on "isLessThan" and "isGreaterThan" with the effect that all image positions with "imageorient" greater than 24 will be handled as "Beside text".

I suggest a change in EXT:css_styled_content/static/setup.txt to handle this specifically for the imageorient-values 25 and 26:

tt_content.textpic {
...
10.if.value = 25,26
10.if.isInList.field = imageorient
10.if.negate = 1
...
20 {
text.10 {
if.value = 25,26
if.isInList.field = imageorient
..
}
...
}
}

This change will make it easy to add new "Beside text" image positions and also make it easier to add new "In text" positions using "imageorient" values greater than 26.

Best regards,
Mikkel

(issue imported from #M16676)


Files

patch_16676.diff (822 Bytes) patch_16676.diff Administrator Admin, 2010-12-05 12:02
patch_16676_2.diff (3.99 KB) patch_16676_2.diff Christian Ludwig, 2012-07-18 20:53
Actions

Also available in: Atom PDF