Feature #20256
closedimgResource does not allow TS option file.current=1
0%
Description
Even if you have set an imageFilename with $cObj->setCurrentVal('filename'), sou cant use this in TS by e.g. image.file.current=1
Example:
image = IMAGE
image.file.current = 1
The attached patch improves class.tslib_content.php to allow the 'current'-option
(issue imported from #M10814)
Files
Updated by Georg Ringer over 15 years ago
no need for that, use something like this!
logo {
setContentToCurrent = 1
if.isTrue.current = 1
stdWrap.cObject = IMAGE
stdWrap.cObject {
file {
import = uploads/tx_city/
import.current = 1
maxW = 60
maxH = 60
}
params = style="margin-left: 500px; position: absolute;"
}
}
Updated by Christian Kuhn over 15 years ago
Resolved, no change required.
You could use this TS to achieve the same thing:
image = IMAGE
image.file.import.current = 1
Thanks to Franz Koch and Georg Ringer for pointing this out.