[Zope] Double dtml-in does not work?

Jaroslav Lukesh lsh@wo.cz
Thu, 13 Jun 2002 13:27:40 +0200


Hi, I have that construction in "index_html" method (Zope 2.4.0). If it
find file "index.htm" in directory, then it will show it without header and
footer. In other case it will render as structured text whole content of
directory. But it show only header and footer without contents of
directory.


<dtml-in expr="objectValues()">
	<dtml-if expr="_.string.find(_['id'],'index.htm')==0">
		<dtml-if sequence-start><dtml-var index.htm>
		</dtml-if>
	<dtml-else>
		<dtml-if sequence-start>
			<dtml-var standard_html_header>

......this second dtml-in does not work:

			<dtml-in expr="objectValues('File')">
		        <h3><dtml-var navi_BANNER></h3>
			  <p><dtml-var sequence-item fmt=structured-text>
			</dtml-in> 

			<dtml-var standard_html_footer>
		</dtml-if>
	</dtml-if>
</dtml-in>


I am very begginer, sorry for stupid question.

Many thanks             Jaroslav Lukesh, K-net
------------------------------------------------------------------------
www.k-net.cz  Multimedia, Networking, Communications, terminals, NC, R+D