Is there a way to remove @@download from the file content type so that the document can open up in the browser instead of being asked to download the file onto the computer? Both the Plone file content type and my Dexterity file content type are behaving in the same way.
Can it be changed:
Any help or advice would be most appreciated. Thank you.
@@download URL is generated here:
plone/formwidget/namedfile/widget.py: def download_url(self):
and used here
plone/formwidget/namedfile/file_display.pt: tal:attributes="href view/download_url">Filename</a>
Either customize the method generating the URL (monkeypatching) or customize the rendering template (z3c.jbot).
No need for customization... just replace the @@download to @@display-file and you’re good to go.
Which is of course a customization that must be made somewhere and somehow.
Hey everyone! Thanks so much! I replaced @@download with @@display-file in my Dexterity templates and it worked like a charm. You all rock! Thanks so much!!! Cheers.