[TYPO3-english] Check if an area doesn't contain elements
Jeppe Donslund
jeppe at donslund.net
Thu Dec 17 10:24:19 CET 2009
Hi Peter
If it should not be an Objectpath Lib.btm_elm_1. What should it the be?
btm_elm_1 should contain regular TYPO3 element, but if it doesn't. It
should contain the element with uid 49.
Jeppe
Peter Niederlag skrev:
> 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
More information about the TYPO3-english
mailing list