Hello,

I ask about how to detect root in the list and Got three answer:

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


<dtml-if "title == 'Zope'">

Title is Zope
<dtml-else>
No title not zope
</dtml-if>

<dtml-if "id == ''">
root folder have not identity
<dtml-else>
there is id
</dtml-if>

However, all of them fail working in virtual web with siteroot set. How can
I detect the root with or without siteroot?


Rgs,

Kent Sin
---------------------------------
kentsin.weblogs.com
kentsin.imeme.net


_______________________________________________
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