[TYPO3-english] Check if an area doesn't contain elements

Peter Niederlag typo3-list at niekom.de
Thu Dec 17 10:04:06 CET 2009


Hello Jeppe,

Does it work? Otherwise you are at least getting VERY close.

Jeppe Donslund schrieb:
> Hi Loek.
[...]
>         <eType_EXTRA type="array">
>             <objPath>lib.btm_elm_1</objPath>
>         </eType_EXTRA>

Here ^^^ you configure to use an objPath

>         <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>

Now you setup the objectPath Lib.btm_elm_1' that you want to use INSIDE
the datastructure. This might not work.

In general you either define a "local" TypoSript-Setup INSIDE the
datastructure OR you "reference" an objPath, which then is setup inside
a regular TypoScript template(NOT within the datastructure).

So if it does not work move the lines 'lib.btm_elm_1=COA' with
corresponding setup to the template where you define lib.element1. Since
you copy  lib.element1 inside lib.btm_elm_1 you have to insert it AFTER
lib.element1.

It should work then.

Greets,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-english mailing list