[Zope] A corker

Luke Tymowski luke@seeto.com
Thu, 17 May 2001 14:19:28 -0400


hello,

> (1) get TheArgument from inside TheDTMLMethod (methinks
> PARENTS[0], but that seemed to be problematic)
> (2) Open the DTML document, once I have the argument

<dtml-var "learn.learn_at_home()">

would give you the processed contents of a dtml method (learn_at_home) found in the learn folder.


<dtml-var "learn.learn_at_home">

would give you the raw contents of a dtml method (learn_at_home) found in the learn folder.


<dtml-with archives>
<dtml-with 2001>
<dtml-in "objectValues(['DTML Document'])" size=3 sort=title reverse>
<dtml-call "REQUEST.set('renderedfooter',1)">
<dtml-var sequence-item>
<a href="<dtml-var absolute_url>" title="Permanent link to the entry for <dtml-var title>">PermaLink</a>
<br /> 
</dtml-in>
</dtml-with>
</dtml-with>
<dtml-call "REQUEST.set('renderedfooter',0)">

that snippet digs into the folders archives -> 2001,
tells Zope not to process the headers and footers (more to it than that),
inserts the contents of the dtml document with the line <dtml-var sequence-item>

the contents being whatever is in the dtml document except the header and footer code.

hope that helps,

luke