[TYPO3-german] FCE-Bild-Breite nach Seitentemplate bestimmen?

Nicole shizu__ at hotmail.com
Sat Jul 17 20:00:20 CEST 2010


Hm, ne. Ich habe nun noch einmal einen Anlauf gewagt und außer gähnender 
Leere bekomme ich nichts...

FCE (2-Spaltig, nur die erste Spalte):
<field_spalte2_1 type="array">
	[...]
		<TypoScript>#Maximale Breite für Bilder
		#5 = LOAD_REGISTER
		#5.maxImageWidth = {$imageWidthfce2}
		#10 = RECORDS
		#10.source.current=1
		#10.tables = tt_content
		#15 = RESTORE_REGISTER
	
		20 = LOAD_REGISTER
		20.maxImageWidth.cObj = CASE
		20.maxImageWidth.cObj {
		  key.data = register : fceBasedImageWidth
		  layout_slim = TEXT
		  layout_slim.value = 30
		  template_breit = TEXT
		  template_breit.value = 450
		}
		30 = RECORDS
		40 = RESTORE_REGISTER
		#10= RECORDS
		#10.source.current=1
		#10.tables = tt_content</TypoScript>
	[...]
	<TypoScript_constants type="array">
		<imageWidthfce2>{$_CONSTANTS.imageWidthfce2}</imageWidthfce2>
	</TypoScript_constants>
	[...]
</field_spalte2_1>

Haupttemplate:
<field_content type="array">
	<tx_templavoila type="array">
		<title>Seiteninhalt</title>
		<sample_data type="array">
			<numIndex index="0"></numIndex>
		</sample_data>
		<eType>ce</eType>
		<TypoScript><![CDATA[5 = LOAD_REGISTER
			5.maxImageWidth = 525
			10= RECORDS
			10.source.current=1
			10.tables = tt_content
			20 = RESTORE_REGISTER
	
			30 = LOAD_REGISTER
			30.fceBasedImageWidth = template_normal
			40 < lib.content
			50 = RESTORE_REGISTER
		]]></TypoScript>
		<proc type="array">
			<int>0</int>
			<HSC type="integer">0</HSC>
			<stdWrap></stdWrap>
		</proc>
		<preview></preview>
		<oldStyleColumnNumber>0</oldStyleColumnNumber>
	</tx_templavoila>
	[...]
	<TypoScriptObjPath>lib.content</TypoScriptObjPath>
</field_content>
Den Tag "TypoScriptObjPath" habe ich selbst mal blind eingefügt... Keine 
Ahnung, ob das nun richtig war...

Kann mir da nun jemand sagen wo der Fehler liegt? Die gesamte Spalte ist 
nämlich weg...

Grüße
Nicole


More information about the TYPO3-german mailing list