[Zope] HowTo Download Files

mindlace mindlace@imeme.net
Wed, 15 Mar 2000 07:03:41 +0000


Roy Martin wrote:
> 
> Hello,
> 
> I have a problem with allowing clients to download files from a Zope folder.
> The HTML tag is as follows:
> 
>  <P><AHREF="/some_folder/Download/AvsB">AvB</A></P>
        ^ space?                      ^^   ^^ is it AvB or
AvsB?                        

have you tried this:

 <dtml-with some_folder>
 <dtml-with Download>
<p><a href="<dtml-var "AvB.absolute_url()">">AvB</a>
 </dtml-with>
 </dtml-with>

This will at least throw a key error if Zope can't find it. If you're in
Download, I recommend:

<dtml-in "objectValues(['File'])">
<p><a href="&dtml.url-sequence-item;"><dtml-var title_or_id></a>
</dtml-in>

-- 
http://mindlace.net____________________mindlace@imeme.net
I don't want The Truth but I wouldn't mind a Big Analogy.