[TYPO3-mvc] Fluid template problem - two arrays and no way to use the same key?

Kerstin Eitner eitner.kerstin at googlemail.com
Fri Sep 10 16:45:44 CEST 2010


Hi all,

I'm also currently creating my first Extbase TYPO3 Extension.

I have two arrays where I have stored images and the corresponding image 
captions at the same key positions.

image array {
   0: 'logo.jpg',
   1: 'service.png'
}

caption array {
   0: 'Logo',
   1: 'Service'
}

For-loop over the images-Array:
<f:for each="{reference.image}" as="singleImage">
     <img src="uploads/pics/{singleImage}" alt="" />
</f:for>

Now I want to fill the alt-tag with the corresponding image caption.
How can I manage that?
Do I have to create an array with both informations?


Thanks in advance,
Kerstin Eitner








More information about the TYPO3-project-typo3v4mvc mailing list