Rendering files with exception
Hi all, I want to show structured text files uploaded via FTP, many files in one directory rendered as single file with standard header and footer. But if in directory exist an index.htm file (exception), then current index.htm file was shown without header and footer instead render of STX documents. This sys_list-item DTML method works: <dtml-in expr="objectValues('DTML Document')"> <dtml-if "hasProperty('hide')"><dtml-else> <dtml-var sequence-item fmt=structured-text> </dtml-if> </dtml-in> But follows few snippets does not works optimally. It does render index.htm with header and footer or does not render STX and show index.htm correctly etc. Does somebody know where I make error? Or does have somenody reccomendation for some zope product for that? Many thanks, J. Lukesh <dtml-if expr="_.string.find(_['id'],'index.htm')==0"> <dtml-var index.htm> <dtml-else> <dtml-var standard_html_header> <dtml-var sys_list-item> <dtml-var standard_html_footer> </dtml-if> 8<--------------------------------------------------- <dtml-with expr="objectValues('DTML Document')"> <dtml-if expr="_.string.find(_['id'],'index.htm')==0"> <dtml-var index.htm> <dtml-else> <dtml-var standard_html_header> <dtml-var sys_list-item> <dtml-var standard_html_footer> </dtml-if> </dtml-with> 8<--------------------------------------------------- <dtml-unless expr="PARENTS[0].objectValues('index.htm')"> <dtml-var standard_html_header> <dtml-var sys_list-item> <dtml-var standard_html_footer> </dtml-unless> <dtml-if expr="PARENTS[0].objectValues('index.htm')"> <dtml-var index.htm> </dtml-if> 8<--------------------------------------------------- <dtml-if expr="PARENTS[0].objectValues('index.htm')"> <dtml-var index.htm> <dtml-else> <dtml-var standard_html_header> <dtml-var sys_list-item> <dtml-var standard_html_footer> </dtml-if> 8<--------------------------------------------------- <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 sys_list-item DTML method does not work: <dtml-var sys_list-item> <dtml-var standard_html_footer> </dtml-if> </dtml-if> </dtml-in>
participants (2)
-
Dieter Maurer -
Jaroslav Lukesh