[Zope] detect root.

Evan Simpson evan@4-am.com
Sun, 21 May 2000 12:31:55 -0400


----- Original Message -----
From: Sin Hang Kin <kentsin@poboxes.com>
> How can I detect the root with or without siteroot?

<dtml-in PARENTS>
  <dtml-if expr="absolute_url(relative=1) == ''">
    <dtml-var objectIds>
  </dtml-if>
</dtml-in>

Will show you the contents of both the site "root" and the ZODB root folder,
if the Path of your SiteRoot is '/'.

Cheers,

Evan @ digicool & 4-am