#60 — Custom image scales dont' work
by
Jon Stahl
—
last modified
Apr 26, 2012 11:12 PM
| State | Unconfirmed |
|---|---|
| Version: | 3.17 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Jon Stahl |
| Submitted on | Apr 26, 2012 |
| Responsible | Jon Baldivieso |
| Target release: |
—
|
(Actually this was found in 3.18, but I'm sure it's probably there in previous versions...)
If you define custom image scales through the Image Scales control panel, then try to use those custom scales in a customized version of, say, the pressrelease_view.pt template, the scales don't work. The same code works just fine in a customized newsitem_view.pt template, and Press Release subsclassses News Item, so this seems weird.
If you define custom image scales through the Image Scales control panel, then try to use those custom scales in a customized version of, say, the pressrelease_view.pt template, the scales don't work. The same code works just fine in a customized newsitem_view.pt template, and Press Release subsclassses News Item, so this seems weird.
- Steps to reproduce:
- Plone 4.1.5
PressRoom 3.18
1) Create a new image scale TTW, "release 96:54"
2) Add pressroom
3) Add press release
4) Customize pressrelease_view.pt. Edit image code to use verbatim code from newsitem_view.pt:
<a href="#"
tal:define="here_url context/@@plone_context_state/object_url;"
tal:attributes="href string:$here_url/image/image_view_fullscreen"
id="parent-fieldname-image">
<img tal:replace="structure python: context.tag(scale='mini', css_class='newsImage')" src="" alt="" />
</a>
Works fine. Then change scale='mini' to scale='release' in both newsitem_view and pressrelease_view. News Item view works fine. Press Release doesn't render the image.
No responses can be added.
If you can, please log in before submitting a reaction.
