[TYPO3-templavoila] How to test an empty container / section with TypoScript?
Olivier Schopfer
ops at wcc-coe.org
Mon Sep 3 12:38:06 CEST 2007
Hi there,
Does anybody know a way to test if a section contains sub-items or not?
I want to be able to hide the following list of links in case it's
empty. I suppose that one could achieve that with a .if TypoScript
condition. But how to access the subfields? And how to change the
overall wrap of the section (I've tried to put some Typoscript at the
level of the container, but it doesn't seem to work).
Thanks for any help.
Olivier
ops at wcc-coe.org
<field_left_seealso_container type="array">
<type>array</type>
<tx_templavoila type="array">
<title>See also section</title>
<eType>input</eType>
</tx_templavoila>
<section>1</section>
<el type="array">
<field_see_also_item type="array">
<type>array</type>
<tx_templavoila type="array">
<title>See also link em</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<field_item_title type="array">
<tx_templavoila type="array">
<title>Title</title>
<description>Title of the link</description>
<sample_data type="array">
<numIndex index="0">[put the title here]</numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
(...)
</TCEforms>
</field_item_title>
<field_item_link type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Link</title>
<description>Link</description>
<sample_data type="array">
<numIndex index="0">http://www.oikoumene.org</numIndex>
</sample_data>
<eType>link</eType>
<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
</TypoScript>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
(...)
</TCEforms>
</field_item_link>
</el>
</field_see_also_item>
</el>
</field_left_seealso_container>
More information about the TYPO3-project-templavoila
mailing list