----- Original Message -----
From: Sin Hang Kin <[EMAIL PROTECTED]>
> 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


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to