[Zope] detect root folder

Steve Alexander steve@cat-box.net
Sat, 20 May 2000 14:09:55 +0100


Sin Hang Kin wrote:
> 
> Hi,
> 
> Is it possible to detect the top folder in dtml?
> 
> I means I would like to prevent squishdot to show the ../ when it is already
> in the top level.

<dtml-if "_.len(PARENTS) == 1">
  We're at the root folder
<dtml-else>
  You can go up from here
</dtml-if>


--
Steve Alexander
Software Engineer
Cat-Box limited