-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Templates should use @@images.tag #3535
Milestone
Comments
mauritsvanrees
added a commit
to plone/plone.app.contenttypes
that referenced
this issue
May 19, 2022
mister-roboto
pushed a commit
to plone/buildout.coredev
that referenced
this issue
May 20, 2022
Branch: refs/heads/master Date: 2022-05-19T17:26:18+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/plone.app.contenttypes@f347ab2 When using images view, call tag directly. See plone/Products.CMFPlone#3535 Files changed: A news/3535.bugfix M plone/app/contenttypes/behaviors/leadimage.pt M plone/app/contenttypes/browser/templates/image.pt M plone/app/contenttypes/browser/templates/listing_summary.pt M plone/app/contenttypes/tests/test_image.py Repository: plone.app.contenttypes Branch: refs/heads/master Date: 2022-05-20T10:09:57+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/plone.app.contenttypes@85f93a7 Fixed album view when a folder has no image. Files changed: M plone/app/contenttypes/browser/templates/listing_album.pt Repository: plone.app.contenttypes Branch: refs/heads/master Date: 2022-05-20T15:44:14+02:00 Author: Jens W. Klein (jensens) <[email protected]> Commit: plone/plone.app.contenttypes@efa69bf Merge pull request #647 from plone/maurits-images When using images view, call tag directly. Files changed: A news/3535.bugfix M plone/app/contenttypes/behaviors/leadimage.pt M plone/app/contenttypes/browser/templates/image.pt M plone/app/contenttypes/browser/templates/listing_album.pt M plone/app/contenttypes/browser/templates/listing_summary.pt M plone/app/contenttypes/tests/test_image.py
Is this solved with the above PR? |
No, in my original comment I noted a problem in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Several templates use code like this:
Instead of first calling the
scale
function and callingtag
on the result, we should call thetag
method directly:The old way will not benefit from the
plone.scale
andplone.namedfile
improvements for making a split between creating a tag and creating the actual scale.A quick search shows templates in
plone.app.contenttypes
andplone.app.event
that can be improved, but there may be more, as it is hard to search for this specific problem.The text was updated successfully, but these errors were encountered: