Luke Tymowski writes:
> To have Zope ignore the footer code in one place but still display footer
> code on other pages, I've resorted to this:
> <dtml-with history>
> <dtml-with 2000>
> <dtml-in "objectValues(['DTML Document'])" size=3 sort=title reverse>
> <dtml-call "REQUEST.set('renderedfooter',1)">
> <dtml-var sequence-item>
> <a href="/history/2000/<dtml-var id>" title="Permanent link to the
> entry for <dtml-var title>">PermaLink</a>
> <br> <br>
> </dtml-in>
> </dtml-with>
> </dtml-with>
> <dtml-call "REQUEST.set('renderedfooter',0)">
What about
<dtml-with "_.namespace(standard_html_header='',
standard_html_footer='')">
... your code without "REQUEST" mangling ...
</dtml-with>
This redefines "standard_html_header/footer" inside the "with".
Should work for DTML methods/documents.
Dieter
_______________________________________________
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 )