[TYPO3-german] FCE: Felder in einer Section auslesen / verarbeiten

Daniel Ditgens daniel at ditgens.net
Mon Feb 21 13:13:06 CET 2011


Weiß niemand eine Lösung? Es geht um das Feld »field_gallery_image«, 
welches ich per TS auslesen möchte und im Feld »field_gallery_overview« 
als Liste ausgeben möchte.

Hier mal das XML:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
	<meta type="array">
		<langDisable>1</langDisable>
	</meta>
	<ROOT type="array">
		<tx_templavoila type="array">
			<title>ROOT</title>
			<description>Wählen Sie das HTML-Element der Seite, das Sie als 
übergeordnetes Container-Element der Vorlage möchten.</description>
		</tx_templavoila>
		<type>array</type>
		<el type="array">
			<field_gallery_section type="array">
				<type>array</type>
				<tx_templavoila type="array">
					<title>Section für Bildergalerie</title>
					<eType>input</eType>
					<tags>div:outer</tags>
					<preview></preview>
				</tx_templavoila>
				<el type="array">
					<field_gallery_container type="array">
						<type>array</type>
						<tx_templavoila type="array">
							<title>Container für Bildergalerie</title>
							<eType>input</eType>
							<tags>div:outer</tags>
							<TypoScript></TypoScript>
							<proc type="array">
								<int>0</int>
								<HSC>0</HSC>
								<stdWrap></stdWrap>
							</proc>
							<preview></preview>
						</tx_templavoila>
						<TCEforms type="array">
							<label></label>
							<config type="array">
							</config>
						</TCEforms>
						<el type="array">
							<field_gallery_header type="array">
								<tx_templavoila type="array">
									<title>Überschrift</title>
									<sample_data type="array">
										<numIndex index="0"></numIndex>
									</sample_data>
									<eType>input</eType>
									<tags>h3:inner</tags>
									<TypoScript type="NULL"></TypoScript>
									<proc type="array">
										<int>0</int>
										<HSC>1</HSC>
										<stdWrap></stdWrap>
									</proc>
									<preview></preview>
								</tx_templavoila>
								<TCEforms type="array">
									<label>Überschrift</label>
									<config type="array">
										<type>input</type>
										<size>48</size>
										<eval>trim</eval>
									</config>
								</TCEforms>
							</field_gallery_header>
							<field_gallery_image type="array">
								<tx_templavoila type="array">
									<title>Bild</title>
									<sample_data type="array">
										<numIndex index="0"></numIndex>
									</sample_data>
									<eType>image</eType>
									<tags>img:outer</tags>
									<TypoScript><![CDATA[10 < lib.gallery.image]]></TypoScript>
									<proc type="array">
										<int>0</int>
										<HSC>0</HSC>
										<stdWrap></stdWrap>
									</proc>
									<preview></preview>
								</tx_templavoila>
								<TCEforms type="array">
									<label>Bild</label>
									<config type="array">
										<type>group</type>
										<internal_type>file</internal_type>
										<allowed>gif,png,jpg,jpeg</allowed>
										<max_size>1000</max_size>
										<uploadfolder>uploads/tx_templavoila</uploadfolder>
										<show_thumbs>1</show_thumbs>
										<size>1</size>
										<maxitems>1</maxitems>
										<minitems>0</minitems>
									</config>
								</TCEforms>
							</field_gallery_image>
							<field_gallery_desc type="array">
								<tx_templavoila type="array">
									<title>Beschreibung</title>
									<sample_data type="array">
										<numIndex index="0"></numIndex>
									</sample_data>
									<eType>text</eType>
									<tags>p:inner</tags>
									<TypoScript></TypoScript>
									<proc type="array">
										<int>0</int>
										<HSC>1</HSC>
										<stdWrap></stdWrap>
									</proc>
									<preview></preview>
								</tx_templavoila>
								<TCEforms type="array">
									<label>Beschreibung</label>
									<config type="array">
										<type>text</type>
										<cols>48</cols>
										<rows>5</rows>
									</config>
								</TCEforms>
							</field_gallery_desc>
						</el>
					</field_gallery_container>
				</el>
				<section>1</section>
			</field_gallery_section>
			<field_gallery_overview type="array">
				<tx_templavoila type="array">
					<title>Galerieübersicht</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>none</eType>
					<tags>div:outer</tags>
					<proc type="array">
						<int>0</int>
						<HSC>0</HSC>
						<stdWrap></stdWrap>
					</proc>
					<preview></preview>
					<eType_EXTRA type="array">
					</eType_EXTRA>
					<TypoScript><![CDATA[10 < lib.gallery.overview]]></TypoScript>
				</tx_templavoila>
			</field_gallery_overview>
		</el>
	</ROOT>
</T3DataStructure>



More information about the TYPO3-german mailing list