[Zope] detect root folder
Andrew Kenneth Milton
akm@mail.theinternet.com.au
Sat, 20 May 2000 23:26:16 +1000 (EST)
+----[ Morten W. Petersen ]---------------------------------------------
| > <dtml-if "_.len(PARENTS) == 1">
| > We're at the root folder
| > <dtml-else>
| > You can go up from here
| > </dtml-if>
| >
|
| I think the root folder has the title Zope too, so:
|
| <dtml-if "title == 'Zope'">
| <dtml-call doo_wah_diddy>
| <dtml-else>
| <dtml-call doo_wah_diddy_daaah>
| </dtml-if>
Just don't give any other folders the title of 'Zope'
--
Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton
The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 |
ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|