[TYPO3-english] Re: Display typolink only if not empty

sai chandra d1 at euroblaze.de
Mon Jan 27 12:46:53 CET 2014


Hi Dmitry Dulepov,

Thank you very much for reply. I have somehow used the snippet provided by you but could not succeed.
I am new to typo3 & templavoila. :) Below is my code for the typolink.

<field_banner_link type="array">
				<type>attr</type>
				<tx_templavoila type="array">
					<title>Banner Link</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>link</eType>
					<tags>a:attr:href</tags>
					<TypoScript>
					10 = TEXT					
10.typolink.parameter.current = 1
10.typolink.returnLast = url
</TypoScript>

					<proc type="array">
						<int>0</int>
						<HSC>1</HSC>
						<stdWrap></stdWrap>
					</proc>
					<preview></preview>
				</tx_templavoila>
				<TCEforms type="array">
					<label>Banner Link</label>
					<config type="array">
						<type>input</type>
						<size>15</size>
						<max>256</max>
						<checkbox></checkbox>
						<eval>trim</eval>
						<required>1</required>
						<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>
				</TCEforms>
			</field_banner_link>
			<field_banner_link_text type="array">
				<tx_templavoila type="array">
					<title>Banner Link Text</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>input</eType>
					<proc type="array">
						<HSC type="integer">1</HSC>
						<stdWrap></stdWrap>
					</proc>
					<preview></preview>
				</tx_templavoila>
				<TCEforms type="array">
					<label>Banner Link Text</label>
					<config type="array">
						<type>input</type>
						<size>48</size>
						<eval>trim</eval>
					</config>
				</TCEforms>
			</field_banner_link_text>

Can you please post me where should I modify the types?

Thanks in advance,

Regards,
Sai Chandra Sekhar.M


More information about the TYPO3-english mailing list