[ZPT] Calling NFGnav
Felix Hermann Hoßfeld
enemybuster@hotmail.com
Fri, 30 Nov 2001 02:22:26 +0100
Hello!
Is anybody running the NFGnav-Product succesfulls with ZPT?
My first try was to use a DTML-Wrapper-Method which calls the NFGnavCore,
whoch looks like this
<dtml-var expr="NFGnavCore.TreeMenu(
PARENTS,
REQUEST,
id(),
initlevel=1,
Meta_Types=['Folder','DTML Document'])">
This works only if the PageTemplate and the wrapper-method are in the same
folder. Otherwise I get an 'exceptions.TypeError on object of type 'sting'
is not callable'.
My next try was to call it directly from the template like this:
<span tal:replace="structure
python:root.NFGnavCore.TreeMenu(request.PARENTS, request,
here.id,initlevel=1,Meta_Types=['Folder','DTML Document'])">
It does not give me any errors, but it shows only the folders and
DTML-Documents of my Site but only those in the current folder. It does not
traverse up.
Is it possible that the PARENTS-list is modified in anyway?
Am I making any mistake?
Any ideas?
Thanks in advance
Felix
_________________
Felix H. Hoßfeld
Philosophisches Seminar
Universität Hamburg
Von-Melle-Park 6
20146 Hamburg
_________________________________________________________________
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp