[TYPO3-templavoila] FCE TS if.equals / FCE different image sizes

Aneta Jaroslava aneta2000 at hotmail.com
Tue Aug 18 10:07:45 CEST 2009


Hi all,

I have again a TS problem.

I am using TV in a datastructure. The field imgsize as selectorbox has 0,1  
adn 2 as values when selected.

I want to show images in 3 possibilities

1st - do not show image
2nd - show image with size 200,100
3rd - show image with size 200,200

The Problem is, that equals does not work here.
No matter what I select in selctbox imgsize (0,1 or 2)

So far I have the following TS.

10 = IMAGE
	
10.if {
   value.field = imgsize
   equals = 0
}


10 = IMAGE
	
10.if {
   value.field = imgsize
   equals = 1
}
	
10.file = GIFBUILDER
10.file {
   XY = 200,100
   10 = IMAGE
   10.file.import = uploads/tx_templavoila/
   10.file.import.current = 1
   10.file.import.listNum = 0
}




10 = IMAGE
	
10.if {
   value.field = imgsize
   equals = 2
}
	
10.file = GIFBUILDER
10.file {
   XY = 200,200
   10 = IMAGE
   10.file.import = uploads/tx_templavoila/
   10.file.import.current = 1
   10.file.import.listNum = 0
}


The DS is:
<imgsize type="array">
	<tx_templavoila type="array">
		<title>imgsize</title>
		<description>image size</description>
		<sample_data type="array">
			<numIndex index="0">image size</numIndex>
		</sample_data>
		<eType>select</eType>
	</tx_templavoila>
	<TCEforms type="array">
		<config type="array">
			<type>select</type>
			<items type="array">
				<numIndex index="0" type="array">
					<numIndex index="0">0</numIndex>
					<numIndex index="1">0</numIndex>					
				</numIndex>
				<numIndex index="1" type="array">
					<numIndex index="0">1</numIndex>
					<numIndex index="1">1</numIndex>					
				</numIndex>

				<numIndex index="2" type="array">			
					<numIndex index="0">2</numIndex>
					<numIndex index="1">2</numIndex>
				</numIndex>
			</items>
			<default>0</default>
		</config>
		<label>image size</label>
	</TCEforms>
</imgsize>



Anyone any clues/ideas/suggestions?


More information about the TYPO3-project-templavoila mailing list