[TYPO3-english] One more condition problem
Reinhard Führicht
rf at typoheads.at
Mon Sep 7 12:11:18 CEST 2009
Following works for me:
page = PAGE
page.10 = TEMPLATE
page.10.template = FILE
page.10.template.file
page.10.template.file {
cObject = TEXT
cObject {
value = fileadmin/templates/index.html
override = fileadmin/templates/index2.html
override.if.isInList.data = TSFE:id
override.if.value = 276,275
}
}
So I think your problem lies within
isInList.dataWrap = {register:newsCategoryUid}
How about that?
isInList.data = register:newsCategoryUid
Reinhard
Tyler Kraft schrieb:
> Without the 'if' part.
>
> page.10.subparts.body.template.file.cObject = TEXT
> page.10.subparts.body.template.file.cObject.value = temp1.tmpl
> page.10.subparts.body.template.file.cObject.override = temp2.tmpl
>
> # commented out
> #
> page.10.subparts.body.template.file.cObject.override.if.isInList.dataWrap
> = {register:newsCategoryUid}
> # page.10.subparts.body.template.file.cObject.override.if.value = 54, 56
> etc..
>
>
> If that works then great and problem solved and TSref needs a correction
> made to it
>
>
> Pero Matic wrote:
>> Tyler Kraft wrote:
>>> Well if Reinhard is correct then just try it without the if part and
>>> see if that works.
>>
>> Hm, i'm not sure how do you mean it without if? You mean just to test
>> i that wrap works?
>>
More information about the TYPO3-english
mailing list