11 Jan
2000
11 Jan
'00
11:46 p.m.
Guy Davis wrote:
<dtml-tree expr="_.string.split(URL0,'/')[4]" ... but this doesn't seem to actually evaluate the method call as I got a name error for _. How can I have the dtml-tree tag evaluate that expression and get 'ProjectName'? Thanks again.
Well, you should be able to do <dtml-tree expr="_[_.string.split(URL0,'/')[4]]">, but that's a bit roundabout when what you probably want is <dtml-tree expr="PARENTS[-3]"> (that is, the third parent object from the top, counting the root). Cheers, Evan @ 4-am