Bug #24213
closedTypoScript: insertData change (#23826) probably causes side-effect
0%
Description
#23826 (stdWrap "insertData" does not work anymore if using "override" additionally) kills my existing TypoScript.
See the (simplified) code below, without this change (aka 4.4), the image contains default.jpg, after (4.5, rev 9195) it's just white.
Don't know, if the TypoScript should never have worked, but just did, or a new bug was introduced.
page.10.marks.HEAD = IMAGE
page.10.marks.HEAD.file = GIFBUILDER
page.10.marks.HEAD.file {
XY = 300, 200
10 = IMAGE
10 {
file {
width = 980
# Prefer image from resources field of (parent) page, if set
import {
cObject = TEXT
# Fallback
cObject.value = fileadmin/default.jpg
cObject.override {
required = 1
data = levelmedia:-1,slide
wrap = uploads/media/
listNum = 0
}
}
}
}
}
(issue imported from #M16579)
Updated by Jo Hasenau almost 14 years ago
This modified version of your code works here with beta1 and both, the default fallback and the media image.
So I guess there is something else, that is broken on your server.
page = PAGE
page.10 = IMAGE
page.10.file = GIFBUILDER
page.10.file {
XY = 300, 200
10 = IMAGE
10 {
file {
width = 980
# Prefer image from resources field of (parent) page, if set
import {
cObject = TEXT
# Fallback
cObject.value = fileadmin/default.tif
cObject.override {
required = 1
data = levelmedia:-1,slide
wrap = uploads/media/
listNum = 0
}
}
}
}
}
Updated by Steffen Gebert almost 14 years ago
I experienced this only on a windows machine at that time, while preparing a training environment. As the site is running perfectly, with 4.5, I assume it was a temporary error..