[TYPO3-german]  Fluid_styled_content Media Iterator Spalte/Bild
    Niels Tiedt 
    nt at typo3-coder.org
       
    Fri Feb  3 11:51:46 CET 2017
    
    
  
Hi
Ich versuche verzweifelt den einzelnen Bildern einen index zu entlocken bekomme aber bei jeden Bild in der Schleife den gleichen Wert.
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:ce="http://typo3.org/ns/TYPO3/CMS/FluidStyledContent/ViewHelpers" data-namespace-typo3-fluid="true">
<f:if condition="{gallery.rows}">
	<f:for each="{gallery.rows}" as="row">
		<f:for each="{row.columns}" as="column" iteration="objIterator">
			<f:if condition="{column.media}">
				{objIterator.index}
				{objIterator.cycle}
				{objIterator.total}
			</f:if>
		</f:for>
	</f:for>
</f:if>
Ergebiss:
0 1 1 
0 1 1 
0 1 1 
0 1 1 
0 1 1 
0 1 1 
...
Wie kann ich hier den Index ansprechen oder einen Counter hoch zählen?
Vielen Dank im vorraus
Grüßle Niels
    
    
More information about the TYPO3-german
mailing list