simple DTML/namespace question: changing existing values in a method
Can someone offer a means of accomplishing the following: <dtml-var header> <dtml-var foo> <dtml-if condition> <dtml-call "_.namespace(foo='newvalue')"> </dtml-if> .. <dtml-var foo> .. <dtml-var footer> In this DTML method, if condition is true, I'd like to modify foo's value for the rest of the code that follows. Seems easy enough ... As always, any help is much appreciated. Cheers, Darran. --------------------------------------------- This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/
.. setting a variable..
<dtml-call "REQUEST.set('foo',newvalue)"> or if you have the dtml-eval patch installed: <dtml-eval> foo = newvalue </dtml-eval> You could probably also use dtml-set, but RTFineM first, it doesn't do what you think it does. -Magnus
participants (2)
-
darran.edmundson@anu.edu.au -
magnus/Websys@websys.no