Feature #8233
Uri_ImageViewHelper // Link to a resized image
Status: | Resolved | Start date: | 2010-06-15 | |
---|---|---|---|---|
Priority: | Should have | Due date: | 2010-06-18 | |
Assigned To: | Bastian Waidelich | % Done: | 100% |
|
Category: | ViewHelpers | |||
Target version: | - | |||
Has patch: |
Description
Request:
I think this is not possible for the moment. Either you display a (resized) image or you link to the original image (fullsize). So I think it would be nice to have a viewhelper for linking to an image, providing width/height settings.
Solution:
Here's the implementation of a ViewHelper that works like ImageViewHelper, but just renders the URI, not the whole <img>-Tag. It is based on the original ImageViewHelper and simply returns the $imageResource. Useful for the creation of XML-files where the URI of a resized image is needed.
History
#1 Updated by Bastian Waidelich about 5 years ago
- Assigned To set to Bastian Waidelich
#2 Updated by Bastian Waidelich about 5 years ago
- Due date set to 2010-06-18
- Status changed from New to Accepted
- Branch set to v4
#3 Updated by Bastian Waidelich about 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r2389. Thanks to Christian Baer for your patch!