I got it : <dtml-with "mydoc"> <dtml-var render> </dtml-with> rather than : <dtml-with mydoc> <dtml-var render> </dtml-with> after all, this is quite logical ;) ps : The idea came to me after playing with : <dtml-var "mydoc.title_or_id()"> ----- Original Message ----- From: "Olivier Deckmyn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 23, 2001 2:24 PM Subject: Trivial challenge ? > Hi all, > > I have a problem that looks simple (if not trivial) : I would like to > "render" a DTML Document using a DTML Method. > > The DTMLDoc is "mydoc", has a title (="My Document") and a content (="I am > the doc content") > > The DTMLMethod is "render" and its code is : > """ > I am rendering the <dtml-var title_or_id> page ! > """ > > And, at last, I have a index_html like this : > > """ > <dtml-with mydoc> > <dtml-var render> > </dtml-with> > """ > (All the items are in the same folder , whose id=test and no title) > > When viewing http://localhost:8080/test/ the result I expect is : > > I am rendering the My Document page ! > > OK ? > > But I got : > > I am rendering the test page ! > > THE <DTML-WITH> DID NOTHING !!!!!! > > What makes me become crasy is that http://localhost:8080/test/mydoc/render > works as expected !!! : > I am rendering the My Document page ! > > Can anyone explain me this ? > > And by the way give a solution to my problem ??? Of course I cannot use the > http://localhost:8080/test/mydoc/render notation. > > Thanx for reading that far. > > Olivier. > > _______________________________________________ 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 )