[Zope] Accessing tree-colspan outside tree tag

Steve Alexander steve@cat-box.net
Mon, 08 May 2000 08:21:35 +0100


Guy Davis wrote:
> 
> I need to assign tree-colspan to a page-wide global variable so I can use this value further down the page.
> 
> i.e.
> <dtml-tree>
> Set "_['tree-colspan'] to a page-wide accessible variable.
> </dtml-tree>
> ...
> Now access it down here.
> 
> <dtml-let> would work, but you can't have start a let in a tree tag and finish outside.  It would have been if <dtml-let> didn't have a closing tag to limit variable scope.

Use <dtml-call "REQUEST.set('tree-colspan', value_that_you_want)">

--
Steve Alexander
Software Engineer
Cat-Box limited