[Typo3] problem with array of image
Kraft Bernhard
kraftb at gmx.net
Wed Apr 13 15:43:16 CEST 2005
ElRicko wrote:
> My field photos is a IMAGE and if I put 1 IMAGE no problem, if I put
> two IMAGE $this->cObj->IMAGE($imgTSConfig) not work
It is not the job of the cObj->IMAGE method to split up the image ....
just use
$array = t3lib_div::trimExplode(',', $imageList, 1);
to split the field into it's parts ...
and then use a foreach loop to iterate over the array and use cObj->IMAGE
on each single pic
greets,
Bernhard
--
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50
More information about the TYPO3-english
mailing list