<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=622481010-08032005><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>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:</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial
size=2>###CUT</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2><dtml-var
standard_html_header><BR><dtml-let
folder_url=absolute_url><BR><p><BR><dtml-let
upObject="this().aq_parent"
upTitle="this().aq_parent.title"></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial
size=2><h2><dtml-var upTitle></h2></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2><dtml-with
upObject><BR> <dtml-in expr="objectValues( [ 'Document'
] )" <BR> sort=id
skip_unauthorized><BR> <dtml-if expr="id
<> 'allgemeines' and id <> 'img' and id <> 'pdf' and id
<> 'aktuelles'"><BR><dtml-with
"_.namespace(standard_html_header='',<BR>
standard_html_footer='')"><BR><dtml-call
"REQUEST.set('renderedheader',1)"><BR><dtml-call
"REQUEST.set('renderedfooter',1)"><BR><dtml-var
sequence-item><BR></dtml-with><BR>
</dtml-if><BR>
</dtml-in><BR></dtml-with><BR></dtml-let><BR></p><BR><dtml-call
"REQUEST.set('renderedfooter',0)"></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial
size=2></dtml-let><BR><dtml-var
standard_html_footer></FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005>
<DIV><SPAN class=622481010-08032005><FONT face=Arial
size=2>###CUT</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>Both methods which I
found googling do not work (<dtml-with
"_.namespace(standard_html_header='',<BR>
standard_html_footer='')"><BR>and <dtml-call
"REQUEST.set('renderedheader',1)">)<BR></FONT></SPAN></DIV></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>What can I do to
remove the header and footer for each document?</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>Best
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>Jens
Hauser</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>