[TYPO3-templavoila] Remove empty FCE tags
Benjamin Todd
b.todd at emnet.co.uk
Thu Jan 31 16:09:32 CET 2008
Hi guys,
I have an FCE that has two divs side by side. Each one is a square for
holding a paragraph, image and link to a pdf files.
If someone just files in details for the left box, the right box is
rendered with empty tags, and the link text is shown minus the
hyperlink.
Is it possible for TV to not render empty tags and links that don't have
a link set?
The reason the FCE does two per content element is because the left and
right boxes are different and both their borders are combine together in
the css to get the box effect I'm looking for.
Thanks,
Ben
Data Structure
--------------
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langDisable>1</langDisable>
</meta>
<ROOT type="array">
<tx_templavoila type="array">
<title>ROOT</title>
<description>Select the HTML element on the page
which you want to be the overall container element for the
template.</description>
<tags></tags>
</tx_templavoila>
<type>array</type>
<el type="array">
<field_leftlogo type="array">
<tx_templavoila type="array">
<title>Left Box Logo</title>
<description>The logo image for
the leftside box</description>
<sample_data type="array">
<numIndex
index="0">[left logo]</numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 200
</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>Left Box Logo</label>
</TCEforms>
</field_leftlogo>
<field_leftquote type="array">
<tx_templavoila type="array">
<title>Left Box Quote</title>
<description>The quote for the
leftside box</description>
<sample_data type="array">
<numIndex
index="0">[left quote]</numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC
type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Left Box Quote</label>
</TCEforms>
</field_leftquote>
<field_leftname type="array">
<tx_templavoila type="array">
<title>Left Box Name</title>
<description>The quotee name for
the leftside box</description>
<sample_data type="array">
<numIndex
index="0">[quotee name]</numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC
type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Left Box Name</label>
</TCEforms>
</field_leftname>
<field_leftlink type="array">
<tx_templavoila type="array">
<title>Left Box Link</title>
<description>The link to the
leftside pdf download</description>
<sample_data type="array">
<numIndex
index="0">[left link]</numIndex>
</sample_data>
<eType>link</eType>
<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.value = read case study >>
</TypoScript>
</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</JSop
enParams>
</link>
</wizards>
</config>
<label>Left Box Link</label>
</TCEforms>
</field_leftlink>
<field_rightlogo type="array">
<tx_templavoila type="array">
<title>Right Box Logo</title>
<description>The logo image for
the rightside box</description>
<sample_data type="array">
<numIndex
index="0">[rightside image]</numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 200
</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>Right Box Logo</label>
</TCEforms>
</field_rightlogo>
<field_rightquote type="array">
<tx_templavoila type="array">
<title>Right Box Quote</title>
<description>The quote for the
rightside box</description>
<sample_data type="array">
<numIndex
index="0">[rightside quote]</numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC
type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Right Box Quote</label>
</TCEforms>
</field_rightquote>
<field_rightname type="array">
<tx_templavoila type="array">
<title>Right Box Name</title>
<description>The quotee for the
rightside box</description>
<sample_data type="array">
<numIndex
index="0">[rightside quote]</numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC
type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Right Box Name</label>
</TCEforms>
</field_rightname>
<field_rightlink type="array">
<tx_templavoila type="array">
<title>Right Box Link</title>
<description>The link to the
leftside pdf download</description>
<sample_data type="array">
<numIndex
index="0">[rightside download]</numIndex>
</sample_data>
<eType>link</eType>
<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.value = read case study >>
</TypoScript>
</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</JSop
enParams>
</link>
</wizards>
</config>
<label>Right Box Link</label>
</TCEforms>
</field_rightlink>
</el>
</ROOT>
</T3DataStructure>
------------------------
Benjamin Todd
Web Developer
b.todd at emnet.co.uk
EMNET, PO Box 559, Nottingham, NG1 3LB
Tel: +44 (0)115 956 8260
Fax: +44 (0)115 956 8264
www.emnet.co.uk
Company Registration No. 3144383 - VAT No. 694 620 609 - Registered
Office: Church House, 13-15 Regent Street, Nottingham NG1 5BS
www.emnetsolutions.co.uk
Company Registration No. 05384178 - VAT No. 856 671 781 - Registered
office: Church House, 13-15 Regent Street, Nottingham, NG1 5BS
More information about the TYPO3-project-templavoila
mailing list