[Zope] Showing html files

Jaroslav Lukesh lsh@wo.cz
Tue, 16 Jul 2002 14:20:41 +0200

Odes=EDlatel: andre <zope@bkinformatik.dk>
I'm quite new to zope, and have a little question. I have some html files
different sub-folders I want to show. In the parent folder I have made a=20
index_html to show a list of the files. The thing is that I want to show
including a header and a footer. I can't change the html-files, and the
is uploaded by users, so it has to be a dynamic solution. I hope someone
help me.

Im quite new too, but I have different complette solution via STX. Many
very advanced users was help me in last weeks, so let take a look to
archive with my name and look to threads. There is maybe a future product
for mid-sized collaborative webs (hundreds of pages).

So I have files in folders as basic structure of the web. Each menu item =
separate folder. If in folder is index.htm, then is fully rendered alone
without footer and header. On opposite case is files rendered as segments=
regardless if it is HTML formatted (without <html><head>etc tags) or STX
(structured text) document. Segments are sorted via his ID and should be
temporary hidden via property HIDE. Note that if you want add picture to
STX segment, use segment_name.gif as name of picture, picture then will b=
displayed right from text of current segment.

Print format was obtain via www.site.com/path/document/print

I hope that these info will be very usefull not only for you and will sav=
many hours. I am very happy, that WORKS!

Best regards J. Lukesh

+header and footer with generated menu

DTML Methods are here:
<dtml-if "_.hasattr(aq_explicit,'index.htm')">
     <dtml-var index.htm>
		<dtml-var standard_html_header>
		<dtml-var sys_list-item>
		<dtml-var standard_html_footer>
<dtml-in expr=3D"objectValues('DTML Document')" sort=3Did>
<dtml-if "hasProperty('hide')"><dtml-else>
<table border=3D"0" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0">
    <td width=3D"100%">
		<h3><dtml-var navi_BANNER></h3>
		<dtml-var sequence-item fmt=3Dstructured-text>
			<dtml-var expr=3D"_[id()+'.gif']">
<dtml-if "hasProperty('dlouhy')"
><dtml-var dlouhy
><dtml-var title
<dtml-if "_.hasattr(aq_explicit,'index.htm')">
     <dtml-var index.htm>
<html><head><title><dtml-var title_or_id></title></head><body>
		<dtml-var sys_list-item>