<!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>&nbsp;</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&nbsp;with 
&lt;dtml-var concat_content&gt;</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN 
class=750182118-08032005></SPAN></FONT>&nbsp;</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>&lt;!-- 
Diese Methode zeigt die Inhalte aller Dokumente im aktuellen Verzeichnis an 
--&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2><SPAN 
class=750182118-08032005>&lt;dtml-let upObject="this().aq_parent" 
upTitle="this().aq_parent.title"&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2><SPAN 
class=750182118-08032005>&lt;dtml-with upObject&gt;<BR>&nbsp; &lt;dtml-in 
expr="objectValues( [ 'Document' ] )" 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sort=id 
skip_unauthorized&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;dtml-if expr="id &lt;&gt; 
'allgemeines' and id &lt;&gt; 'img' and id &lt;&gt; 'pdf' and id &lt;&gt; 
'aktuelles'"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-with 
sequence-item&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-var 
"this().content.text"&gt;&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/dtml-with&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/dtml-if&gt;<BR>&nbsp; 
&lt;/dtml-in&gt;<BR>&lt;/dtml-with&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2><SPAN 
class=750182118-08032005>&lt;/dtml-let&gt;<BR><SPAN 
class=750182118-08032005>####CUT</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=750182118-08032005><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-with 
sequence-item&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-var 
"this().content.text"&gt;&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/dtml-with&gt;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&lt;dtml-var 
  standard_html_header&gt;<BR>&lt;dtml-let 
  folder_url=absolute_url&gt;<BR>&lt;p&gt;<BR>&lt;dtml-let 
  upObject="this().aq_parent" 
  upTitle="this().aq_parent.title"&gt;</FONT></SPAN></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><SPAN class=622481010-08032005><FONT face=Arial 
  size=2>&lt;h2&gt;&lt;dtml-var upTitle&gt;&lt;/h2&gt;</FONT></SPAN></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>&lt;dtml-with 
  upObject&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;dtml-in expr="objectValues( [ 
  'Document' ] )" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sort=id 
  skip_unauthorized&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-if expr="id 
  &lt;&gt; 'allgemeines' and id &lt;&gt; 'img' and id &lt;&gt; 'pdf' and id 
  &lt;&gt; 'aktuelles'"&gt;<BR>&lt;dtml-with 
  "_.namespace(standard_html_header='',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  standard_html_footer='')"&gt;<BR>&lt;dtml-call 
  "REQUEST.set('renderedheader',1)"&gt;<BR>&lt;dtml-call 
  "REQUEST.set('renderedfooter',1)"&gt;<BR>&lt;dtml-var 
  sequence-item&gt;<BR>&lt;/dtml-with&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/dtml-if&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &lt;/dtml-in&gt;<BR>&lt;/dtml-with&gt;<BR>&lt;/dtml-let&gt;<BR>&lt;/p&gt;<BR>&lt;dtml-call 
  "REQUEST.set('renderedfooter',0)"&gt;</FONT></SPAN></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><SPAN class=622481010-08032005><FONT face=Arial 
  size=2>&lt;/dtml-let&gt;<BR>&lt;dtml-var 
  standard_html_footer&gt;</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>&nbsp;</DIV>
  <DIV><SPAN class=622481010-08032005><FONT face=Arial size=2>Both methods which 
  I found googling do not work (&lt;dtml-with 
  "_.namespace(standard_html_header='',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  standard_html_footer='')"&gt;<BR>and &lt;dtml-call 
  "REQUEST.set('renderedheader',1)"&gt;)<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>&nbsp;</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>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>