<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV align=left><FONT face=Arial size=2><SPAN
class=750182118-08032005>Hi,</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=750182118-08032005></SPAN></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=750182118-08032005>I fixed
the problem by myself - took me about three hours (d*mn documentation). If
somebody is interested how it works, here is a code snippet from a dtml method,
which does what I want. I call it from a different dtml-document with
<dtml-var concat_content></SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=750182118-08032005></SPAN></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=750182118-08032005>####CUT</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=750182118-08032005><!--
Diese Methode zeigt die Inhalte aller Dokumente im aktuellen Verzeichnis an
--></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=750182118-08032005><dtml-let upObject="this().aq_parent"
upTitle="this().aq_parent.title"></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=750182118-08032005><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
sequence-item><BR> <dtml-var
"this().content.text"><br><BR>
</dtml-with><BR> </dtml-if><BR>
</dtml-in><BR></dtml-with></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=750182118-08032005></dtml-let><BR><SPAN
class=750182118-08032005>####CUT</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=750182118-08032005><FONT face=Arial color=#0000ff size=2>The
important part is this one:</FONT></SPAN></DIV>
<DIV><SPAN class=750182118-08032005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=750182118-08032005><FONT face=Arial
size=2> <dtml-with
sequence-item><BR> <dtml-var
"this().content.text"><br><BR>
</dtml-with></FONT><BR></SPAN></DIV>
<DIV><SPAN class=750182118-08032005><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=750182118-08032005><FONT face=Arial color=#0000ff
size=2>Jens</FONT></SPAN></DIV>
<DIV><SPAN class=750182118-08032005> </DIV></SPAN><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> zope-cmf-bounces@lists.zope.org
[mailto:zope-cmf-bounces@lists.zope.org] <B>Im Auftrag von </B>Jens
Hauser<BR><B>Gesendet:</B> Dienstag, 8. März 2005 11:15<BR><B>An:</B>
zope-cmf@zope.org<BR><B>Betreff:</B> [Zope-CMF] How to "import" only content
without header/ footer<BR></FONT><BR></DIV>
<DIV></DIV>
<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></BLOCKQUOTE></BODY></HTML>