[TYPO3] Math in TypoScript

Arjen Hoekema arjenhoekema at gmail.com
Thu Feb 22 16:50:53 CET 2007


Hi,

You should also check out the "prioriCalc" function of "stdWrap". This 
allows you to calculate values using constants and use them in cObjects 
like TEXT or HTML, for example:

CONSTANTS:

globals {
	x = 3
	y = 5
}


SETUP:

calculate = TEXT
calculate.value = ({$globals.x} + {$globals.y} + 5) * 9
calculate.prioriCalc = 1

Note that the TEXT object is always put through the "stdWrap" function.

Greetings,

Arjen Hoekema


More information about the TYPO3-english mailing list