[TYPO3-english] One more condition problem
Tyler Kraft
tyler.kraft at netefficiency.co.uk
Mon Sep 7 00:42:58 CEST 2009
Hi,
Well it really depends upon where you can apply stdWrap. For instance if
singlePid has stdWrap then you could do something like this:
210 = COA
210.10 < plugin.tt_news
210.10.code = MOST_POPULAR
210.10.singlePid = 3
210.10.singlePid.override = 7
210.10.singlePid.override.if.isInList.dataWrap = {register:newsCategoryUid}
210.10.singlePid.override.if.value = 54,56,57,60,etc..
hth
Pero Matic wrote:
> Hi. I have this piece of TS:
>
> 210 = COA
> 210.10 < plugin.tt_news
> 210.10.code = MOST_POPULAR
> 210.10.singlePid = 3
>
> Now, what i want to do is to check wheter news category uid is equal to some
> value and if true then to assign some other value to singlePid for example
> 7. So, something like this:
>
> catUID = TEXT
> catUID.value = {register:newsCategoryUid}
> catUID.insertData = 1
>
> 210 = COA
> 210.10 < plugin.tt_news
> 210.10.code = MOST_POPULAR
> 210.10.singlePid = 3
> if catUID = 54 then
> 210.10.singlePid = 7
>
> or better
>
> if catUID is in list (54, 56, 57,60, etc...) then
> 210.10.singlePid = 7
>
> Any help is appreciated! Thx.
>
>
More information about the TYPO3-english
mailing list