Feature #8233

Uri_ImageViewHelper // Link to a resized image

Added by Christian Baer over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
ViewHelpers
Target version:
-
Start date:
2010-06-15
Due date:
2010-06-18
% Done:

100%

Estimated time:
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.


Files

ImageViewHelper.php (3.59 KB) ImageViewHelper.php Christian Baer, 2010-06-15 10:36
#1

Updated by Bastian Waidelich over 11 years ago

  • Assignee set to Bastian Waidelich
#2

Updated by Bastian Waidelich over 11 years ago

  • Due date set to 2010-06-18
  • Status changed from New to Accepted
  • Branch set to v4
#3

Updated by Bastian Waidelich over 11 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!

Also available in: Atom PDF