[Zope] Id of root object?
Dieter Maurer
dieter@handshake.de
Fri, 9 Nov 2001 21:39:05 +0100
Terry Hancock writes:
> ...
> So I've been trying to move stuff up. However, I've
> been using a navigation bar that uses a bit of code
> like this to determine where "Up" should be for each
> folder:
>
> <dtml-var expr="_.getitem(Up).absolute_url()">
> ... what should "Up" be to get the root? ...
Several options:
* <dtml-if "Up == ''"><dtml-var BASE1><dtml-else><dtml-var expr="_.getitem(Up).absolute_url()">
usese that the URL of the root is maintained in the request variable
"BASE1"
* <dtml-var expr="restrictedTraverse(Up).absolute_url()">
with "Up" = "/" for the root object
* ....
Dieter