[TYPO3-english] Check if an area doesn't contain elements
Steffen Kamper
info at sk-typo3.de
Tue Dec 22 10:29:32 CET 2009
Hi,
Jeppe Donslund schrieb:
> Hi Loek.
>
> I have tried to put your code into my DS.
>
> <field_bottom_element_1 type="array">
> <tx_templavoila type="array">
> <title>Bundelement 1</title>
> <sample_data type="array">
> <numIndex index="0"></numIndex>
> </sample_data>
> <eType>ce</eType>
> <oldStyleColumnNumber type="integer">1</oldStyleColumnNumber>
> <eType_EXTRA type="array">
> <objPath>lib.btm_elm_1</objPath>
> </eType_EXTRA>
> <TypoScript><![CDATA[
> lib.btm_elm_1 = COA
> lib.btm_elm_1 {
> 10 = RECORDS
> 10 {
> source.current = 1
> tables = tt_content
> stdWrap {
> required = 1
> wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
> ifEmpty.cObject < lib.element1
> }
> }
> }
> ]]></TypoScript>
> </tx_templavoila>
conceptional error. Don't encapsulate your TS with a lib object. This is
for using TyposcriptObjectPath - this TS is never assigned to the value.
Instead start your TS direct with 10 = RECORDS
vg Steffen
More information about the TYPO3-english
mailing list