[TYPO3-templavoila] wrong links in a FCE

Philipp Holdener philipp.holdener at me.com
Sat May 7 08:06:11 CEST 2011


> I have a FCE with 4 images and 4 links.
> This is my DS. With this code all 4 links are the same in the FE (the
> one from the first link).
> What do I have to change in my markup to get it work?

Sorry, seems to be to early in the morning.

It works now with this DS

Greetings
Philipp

<?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_bild1 type="array">
				<tx_templavoila type="array">
					<title>Bild 1</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>imagefixed</eType>
					<TypoScript>
	10 = IMAGE
	10.file = GIFBUILDER
	10.file {
		XY = 249,99
		10 = IMAGE
		10.file.import = uploads/tx_templavoila/
		10.file.import.current = 1
		10.file.import.listNum = 0
		10.file.maxW = 249
		10.file.minW = 249
		10.file.maxH = 99
		10.file.minH = 99
	}
							
	10.stdWrap.typolink.parameter.field = field_link1
									</TypoScript>
				</tx_templavoila>
				<TCEforms type="array">
					<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>
					<label>Bild 1</label>
				</TCEforms>
			</field_bild1>
			<field_link1 type="array">
				<type>attr</type>
				<tx_templavoila type="array">
					<title>Link 1</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>link</eType>
					<TypoScript>
	10 = TEXT
	10.typolink.parameter.current = 1
	#10.typolink.returnLast = url
	10.typolink.parameter.field = field_link1
							</TypoScript>
					<proc type="array">
						<HSC type="integer">1</HSC>
					</proc>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>input</type>
						<size>15</size>
						<max>256</max>
						<checkbox></checkbox>
						<eval>trim</eval>
						<wizards type="array">
							<_PADDING type="integer">2</_PADDING>
							<link type="array">
								<type>popup</type>
								<title>Link</title>
								<icon>link_popup.gif</icon>
								<script>browse_links.php?mode=wizard</script>
							 
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
							</link>
						</wizards>
					</config>
					<label>Link 1</label>
				</TCEforms>
			</field_link1>
			<field_bild2 type="array">
				<tx_templavoila type="array">
					<title>Bild 2</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>imagefixed</eType>
					<TypoScript>
	10 = IMAGE
	10.file = GIFBUILDER
	10.file {
		XY = 249,99
		10 = IMAGE
		10.file.import = uploads/tx_templavoila/
		10.file.import.current = 1
		10.file.import.listNum = 0
		10.file.maxW = 249
		10.file.minW = 249
		10.file.maxH = 99
		10.file.minH = 99
	}
							
	10.stdWrap.typolink.parameter.field = field_link2
									</TypoScript>
				</tx_templavoila>
				<TCEforms type="array">
					<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>
					<label>Bild 2</label>
				</TCEforms>
			</field_bild2>
			<field_link2 type="array">
				<type>attr</type>
				<tx_templavoila type="array">
					<title>Link 2</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>link</eType>
					<TypoScript>
	10 = TEXT
	10.typolink.parameter.current = 1
	#10.typolink.returnLast = url
	10.typolink.parameter.field = field_link2
							</TypoScript>
					<proc type="array">
						<HSC type="integer">1</HSC>
					</proc>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>input</type>
						<size>15</size>
						<max>256</max>
						<checkbox></checkbox>
						<eval>trim</eval>
						<wizards type="array">
							<_PADDING type="integer">2</_PADDING>
							<link type="array">
								<type>popup</type>
								<title>Link</title>
								<icon>link_popup.gif</icon>
								<script>browse_links.php?mode=wizard</script>
							 
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
							</link>
						</wizards>
					</config>
					<label>Link 2</label>
				</TCEforms>
			</field_link2>
			<field_bild3 type="array">
				<tx_templavoila type="array">
					<title>Bild 3</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>imagefixed</eType>
					<TypoScript>
	10 = IMAGE
	10.file = GIFBUILDER
	10.file {
		XY = 249,99
		10 = IMAGE
		10.file.import = uploads/tx_templavoila/
		10.file.import.current = 1
		10.file.import.listNum = 0
		10.file.maxW = 249
		10.file.minW = 249
		10.file.maxH = 99
		10.file.minH = 99
	}
							
	10.stdWrap.typolink.parameter.field = field_link3
									</TypoScript>
				</tx_templavoila>
				<TCEforms type="array">
					<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>
					<label>Bild 3</label>
				</TCEforms>
			</field_bild3>
			<field_link3 type="array">
				<type>attr</type>
				<tx_templavoila type="array">
					<title>Link 3</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>link</eType>
					<TypoScript>
	10 = TEXT
	10.typolink.parameter.current = 1
	#10.typolink.returnLast = url
	10.typolink.parameter.field = field_link3
							</TypoScript>
					<proc type="array">
						<HSC type="integer">1</HSC>
					</proc>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>input</type>
						<size>15</size>
						<max>256</max>
						<checkbox></checkbox>
						<eval>trim</eval>
						<wizards type="array">
							<_PADDING type="integer">2</_PADDING>
							<link type="array">
								<type>popup</type>
								<title>Link</title>
								<icon>link_popup.gif</icon>
								<script>browse_links.php?mode=wizard</script>
							 
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
							</link>
						</wizards>
					</config>
					<label>Link 3</label>
				</TCEforms>
			</field_link3>
			<field_bild4 type="array">
				<tx_templavoila type="array">
					<title>Bild 4</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>imagefixed</eType>
					<TypoScript>
	10 = IMAGE
	10.file = GIFBUILDER
	10.file {
		XY = 249,99
		10 = IMAGE
		10.file.import = uploads/tx_templavoila/
		10.file.import.current = 1
		10.file.import.listNum = 0
		10.file.maxW = 249
		10.file.minW = 249
		10.file.maxH = 99
		10.file.minH = 99
	}
							
	10.stdWrap.typolink.parameter.field = field_link4
									</TypoScript>
				</tx_templavoila>
				<TCEforms type="array">
					<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>
					<label>Bild 4</label>
				</TCEforms>
			</field_bild4>
			<field_link4 type="array">
				<type>attr</type>
				<tx_templavoila type="array">
					<title>Link 4</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>link</eType>
					<TypoScript>
	10 = TEXT
	10.typolink.parameter.current = 1
	#10.typolink.returnLast = url
	10.typolink.parameter.field = field_link4
							</TypoScript>
					<proc type="array">
						<HSC type="integer">1</HSC>
					</proc>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>input</type>
						<size>15</size>
						<max>256</max>
						<checkbox></checkbox>
						<eval>trim</eval>
						<wizards type="array">
							<_PADDING type="integer">2</_PADDING>
							<link type="array">
								<type>popup</type>
								<title>Link</title>
								<icon>link_popup.gif</icon>
								<script>browse_links.php?mode=wizard</script>
							 
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
							</link>
						</wizards>
					</config>
					<label>Link 4</label>
				</TCEforms>
			</field_link4>
		</el>
	</ROOT>
</T3DataStructure>


More information about the TYPO3-project-templavoila mailing list