Skip to content

Commit

Permalink
Customize @Download view to allow downloading miniature images with t…
Browse files Browse the repository at this point in the history
…heir original filename and not with miniature as filename
  • Loading branch information
cekk committed Oct 4, 2024
1 parent 345689e commit 0a58972
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
5.5.6 (unreleased)
------------------

- Nothing changed yet.
- Customize @download view to allow downloading miniature images with their original filename and not with miniature as filename.
[cekk]


5.5.5 (2024-09-23)
Expand Down
10 changes: 10 additions & 0 deletions src/redturtle/volto/browser/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,14 @@
permission="zope2.View"
layer="redturtle.volto.interfaces.IRedturtleVoltoLayer"
/>

<!-- override @@download view -->
<browser:page
name="download"
for="*"
class=".download.Download"
permission="zope2.View"
layer="redturtle.volto.interfaces.IRedturtleVoltoLayer"
/>

</configure>

0 comments on commit 0a58972

Please sign in to comment.