[TYPO3-english] Random DAM image with TS problem
Jigal van Hemert
jigal at xs4all.nl
Sat Jun 13 22:51:39 CEST 2009
> temp.randomImageFile = CONTENT
> temp.randomImageFile {
If you use lib.randomImageFile you can later use ...
> table = tx_dam
(...)
> 10 = IMAGE
> 10 {
> file.import.cObject < temp.randomImageFile
file.import.cObject = < lib.randomImageFile
> altText.data = register:randomImageDamTitle
> }
> 20 = IMAGE
> 20 {
> file.import.cObject < temp.randomImageFile
file.import.cObject = < lib.randomImageFile
> offset = 250,0
> altText.data = register:randomImageDamTitle
> }
Instead of making a copy of randomImageFile you can probably use a
reference to the object. If you change anything in the reference it will
also be changed in the object your reference points to! (But in your
example you don't do that; just a warning :-) )
--
Jigal van Hemert.
More information about the TYPO3-english
mailing list