[Zope-CMF] How to "import" only content without header/ footer

Jens Hauser hauser at pilsgenuss.de
Tue Mar 8 05:14:30 EST 2005


Hi,
 
I'm trying to create a dtml-document, which concats all content from all
documents within a folder. Sadly for all objects the standard_html_header
and footer is added. I'd like to strip these information and show only the
content of each found document. Therefore I wrote the following script:
 
###CUT
<dtml-var standard_html_header>
<dtml-let folder_url=absolute_url>
<p>
<dtml-let upObject="this().aq_parent" upTitle="this().aq_parent.title">
 
<h2><dtml-var upTitle></h2>
 
<dtml-with upObject>
    <dtml-in expr="objectValues( [ 'Document' ] )" 
      sort=id skip_unauthorized>
      <dtml-if expr="id <> 'allgemeines' and id <> 'img' and id <> 'pdf' and
id <> 'aktuelles'">
<dtml-with "_.namespace(standard_html_header='',
                        standard_html_footer='')">
<dtml-call "REQUEST.set('renderedheader',1)">
<dtml-call "REQUEST.set('renderedfooter',1)">
<dtml-var sequence-item>
</dtml-with>
     </dtml-if>
    </dtml-in>
</dtml-with>
</dtml-let>
</p>
<dtml-call "REQUEST.set('renderedfooter',0)">
 
</dtml-let>
<dtml-var standard_html_footer>
###CUT
 
Both methods which I found googling do not work (<dtml-with
"_.namespace(standard_html_header='',
                        standard_html_footer='')">
and <dtml-call "REQUEST.set('renderedheader',1)">)

What can I do to remove the header and footer for each document?
 
Best regards,
Jens Hauser
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-cmf/attachments/20050308/0c02af4d/attachment.htm


More information about the Zope-CMF mailing list