[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nuxeo-localizer] Tree-Tag with LocalContent object
From: |
Alexander Gräfe |
Subject: |
Re: [Nuxeo-localizer] Tree-Tag with LocalContent object |
Date: |
Thu, 11 Jul 2002 12:59:10 +0200 |
User-agent: |
Mutt/1.4i |
On Thu, Jul 11, 2002 at 12:26:55PM +0200, Juan David Ibáñez Palomar wrote:
> Ok, how to solve this, many ways, one:
>
> if context.meta_type == 'LocalContent':
> context = context.aq_parent
>
> return context.objectValues(['Folder', DTML Document', 'LocalContent',
> 'DonEdukia')
OK, I solved this now by creating a DTML Method called SideBar, which
contains:
---snip---
<dtml-tree branches_expr="objectValues(['DonEdukia','LocalContent'])"
single="1">
<A HREF="<dtml-var BASE1>/<dtml-var SELECTED_LANGUAGE>/<dtml-var
tree-item-url>"><dtml-var title></A>
</dtml-tree>
---snip---
and calling it in the header template like this:
---snip---
<dtml-var "SideBar(PARENTS[-1],REQUEST)">
---snip---
Thanks for your help,
Alexander Gräfe