Forums / Setup & design / incrementing an object attribute... please help

incrementing an object attribute... please help

Author Message

Hugo Siles

Thursday 08 April 2004 2:02:43 pm

Hi, i want to know if it's posible to change the value of one object in one node. For example, I have extended the article class, now it has a new intenger attribute, what I want is that this attribute get incremented every time the node it's viewed.

In the template for viewing this article I put something like this

{set $node.data_map.volumen.data_int = inc($node.data_map.volumen.data_int) }

where volume is the integer attribute that I want to increment.. I'd apreciate any idea

thanks

Hugo