[TYPO3-english] Gettin the total of two typoscript objects
JoH asenau
info at cybercraft.de
Fri Mar 5 18:30:01 CET 2010
> I have two typoscript objects containing an integer value, let's call
> them
>
> lib.price_normal and
> lib.price_discount
>
> Is there any way to generate a third typoscript object
>
> lib.price_sum
>
> containg the sum of price_normal and price_discount?
>
> With typoscript calc functions I can calculate with one "dynamic" data
> object with a "static" value, but I didn't find a way to calculate
> with two "dynamic" objects.
Put them into a COA and use stdWrap.prioriCalc
lib.price_sum = COA
lib.price_sum {
10 < lib.priceNormal
20 = TEXT
20.value = +
30 < lib.price_sum
stdWrap.prioriCalc = 1
}
Not tested but HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
More information about the TYPO3-english
mailing list