[Zope-CMF] how do I use returned value

Ausum Studio ausum_studio at hotmail.com
Wed May 5 11:04:47 EDT 2004


<dtml-var "body_pages[getId()].CookedBody()">


Ausum


----- Original Message ----- 
From: "Agata Cruickshank" <A.Cruickshank at bbk.ac.uk>
To: "zope-cmf" <zope-cmf at zope.org>
Sent: Wednesday, May 05, 2004 8:57 AM
Subject: [Zope-CMF] how do I use returned value


I have a page in CMF which displays text from another page:

<dtml-with body_pages>
 <dtml-var "testpage.CookedBody()">
</dtml-with>

That works fine, but I don't want to hardcode 'testpage' and would like it
to be the id of the host page. However, the code below doesn't work.(the
host page id is testpage and there is a testpage in body_pages folder)

<dtml-let result="getId()">
<dtml-with body_pages>
  <dtml-var "result.CookedBody()">
</dtml-with>
</dtml-let>

How can I push result value to the CookedBody method?

Many thanks for any code snippets.
Agata

_______________________________________________
Zope-CMF maillist  -  Zope-CMF at zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests



More information about the Zope-CMF mailing list