[Zope-CMF] Suggested Change for file_view
Rolander, Dan
Dan.Rolander@marriott.com
Wed, 2 May 2001 16:05:23 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0D343.38C33280
Content-Type: text/plain;
charset="iso-8859-1"
Perhaps it works differently with Netscape on *nix, but for Internet
Explorer on Windows clicking on a file download link in CMF causes IE to
open a File Save dialog with the file name as 'download'. This is a pain to
change, especially if the user doesn't know what the file name should be. If
you change the following line in file_view it will instead make the default
file name the object id, which if given the file name will be the correct
default download name.
Change
<a href="download">Download &dtml-title;</a>
To
<a href="&dtml-absolute_url;">Download &dtml-title;</a>
I'm still a newbie at this, so perhaps it was set to "download" by design,
but it works better for me as the absolute url.
Dan
------_=_NextPart_001_01C0D343.38C33280
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.3019.2500" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=916081020-02052001>Perhaps it works
differently with Netscape on *nix, but for Internet Explorer on Windows clicking
on a file download link in CMF causes IE to open a File Save dialog with the
file name as 'download'. This is a pain to change, especially if the user
doesn't know what the file name should be. If you change the following line in
file_view it will instead make the default file name the object id, which if
given the file name will be the correct default download
name.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001>Change</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=916081020-02052001>
<a href="download">Download &dtml-title;</a></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001>To</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=916081020-02052001>
<a href="&dtml-absolute_url;">Download
&dtml-title;</a></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=916081020-02052001>I'm still a newbie
at this, so perhaps it was set to "download" by design, but it works better for
me as the absolute url.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001>Dan</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=916081020-02052001></SPAN></FONT> </DIV></BODY></HTML>
------_=_NextPart_001_01C0D343.38C33280--