Project

General

Profile

Actions

Feature #20256

closed

imgResource does not allow TS option file.current=1

Added by Stefan Geith over 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2009-03-31
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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

010814-TS_file_current.patch (640 Bytes) 010814-TS_file_current.patch Administrator Admin, 2009-03-31 12:38
Actions #1

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;"
}
}

Actions #2

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.

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF