[Zope] Newbee question
Matthias Hörtzsch
m_hoertzsch@yahoo.de
Sun, 2 Mar 2003 16:41:28 +0100
Am Sonntag, 2. März 2003 16:12 schrieb Jens JB. Bjerre:
> Hi
>
>
>
> I would like to add a DTML-Method called showfile, who call's the
> standard_header, call's the object specified in the url and then call's
> the footer.
>
> It could be: http://localhost/showfile?file=testfile.html
you could try to use something like this:
<dtml-var standard_html_header>
<dtml-if "REQUEST.form.has_key('file')">
<dtml-var "_.getitem(REQUEST.form['file'],1)">
</dtml-if>
<dtml-var standard_html_footer>
would also be a good idea to check if the correct url was given to your file
variable, otherwise you will get an error message
Matthias
> Can anyone please help me?
>
>
>
> Regards
>
>
>
> Jens Bjerre
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de