[TYPO3-english] Get page id and decrease with 1
Dmitry Dulepov
dmitry at typo3.org
Fri Apr 10 14:09:03 CEST 2009
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".
> 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
--
Dmitry Dulepov
In TYPO3 blog: http://dmitry-dulepov.com/article/cbrealurl-preconfigure-your-realurl.html
LinkedIn: http://www.linkedin.com/in/dmitrydulepov
Twitter: http://twitter.com/dmitryd
Skype: liels_bugs
More information about the TYPO3-english
mailing list