[TYPO3-english] Get page id and decrease with 1

Radoslav Kolarov radoslav.kolarov at osceola.de
Fri Apr 10 14:21:33 CEST 2009


Hi, thanks for the response

Dmitry Dulepov wrote:
> Hi!
>
> Radoslav Kolarov wrote:
>   
>> I want to get page ID with typoscript and decrease the number with one.
>> I get the ID with this code:
>>
>> temp.value.field = uid
>>     
>
> Don't use "temp" on its own. Use "temp.something", not just "temp".
>
>   
Ok, I use temp here just for example
>> and set prioriCalc to 1
>> temp.value.prioriCalc = 1
>>
>> But how to decrease the number? I try some solutions for example:
>> temp.value = {field:uid} - 1
>> but it recognize {field:uid} as 0 and the result is -1 :(
>>     
>
> temp.insertData = 1
>
>   

I have insertData but it still return {field:uid} as null....


More information about the TYPO3-english mailing list