[TYPO3-english] Condition mapping values

Philipp Gampe phil at philippgampe.info
Sat Sep 5 12:43:43 CEST 2009


Am 05.09.2009, 00:10 Uhr, schrieb Nesto <facckerr at alibaba.yo>:

> Hi. This is my TS code:
>
>   catUID = TEXT
>   catUID.value = {register:newsCategoryUid}
>   catUID.insertData = 1
>
> So, i'm getting news category UID and storing it in catUID var. Now,  
> what i
> want to do is this:
>
> if ($catUID = 1) $PID = 20;
> if ($catUID = 2) $PID = 24;
> if ($catUID = 3) $PID = 26;
> ...... etc....
>
> Basicly i need to map those catUIDs to PIDs. Is this possible to do?
>
> Thank you for help!

TS is not PHP :)

if you tell us what you are trying to archive, we can examine how to  
approach
sometimes there is an easier way to do things one just would never think  
of :)

Best regards
Phil

-- 
Opera - the fastest newsreader
(I used Thunderbird and Evolution before)


More information about the TYPO3-english mailing list