[TYPO3-english] One more condition problem
Tyler Kraft
tyler.kraft at netefficiency.co.uk
Mon Sep 7 12:38:08 CEST 2009
Mmmm
I believe it depends upon if the value in the register has been cleared
out by the point your trying to use it.
But if you can use that as is just adapt it for your file COA cObject
and your done!
I still think the isInList.dataWrap = {register:newsCategoryUid} should
work ok, but try this
isInList.data = register:newsCategoryUid
isInList.insertData = 1
Or if that doesn't work then try:
isInList.stdWrap.data = register:newsCategoryUid
isInList.stdWrap.insertData = 1
(I'm working from memory here, so the TS might not be 100% accurate but
it should be indicative of what would work)
hth
Pero Matic wrote:
> Reinhard Führicht wrote:
>> 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
>
> I really hopped this will work because it looks fine but no luck :-( I can't
> believe it. And i have similar code with CASE which works fine:
>
> PID = CASE
> PID {
> key.data = register:newsCategoryUid
> 4 = TEXT
> 4.value = 18
> default = TEXT
> default.value = 18
> }
>
>
>
More information about the TYPO3-english
mailing list