[TYPO3-core] RFC: Feature request 4006 (Load $GLOBALS['TSFE'] with image dimensions when IMG_RESOURCE is used)
Dmitry Dulepov
dmitry at typo3.org
Wed Jan 17 14:46:04 CET 2007
Committed. Michael, please update docs (see below, at the end of quotation).
Dmitry Dulepov wrote:
> This is SVN patch request.
>
> Branch: trunk
>
> Problem (quote from BT): "As documented in the TSref, the IMAGE cObject
> loads $GLOBALS['TSFE']->lastImageInfo with the height, width and url of
> the image. This would be a very useful addition to the IMG_RESOURCE
> object as well--especially for dynamically generating CSS--specifically
> for generating background properties."
>
> Solution: do the same for IMG_RESOURCE as for IMAGE. Very simple and
> safe to get into 4.1...
>
> Documentation change: section 8.7 of TSRef, before the table: "The array
> $GLOBALS["TSFE"]->lastImgResourceInfo is set with the info-array of the
> returning image resource (if any) and contains width, height and so on."
--
Dmitry Dulepov
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
More information about the TYPO3-team-core
mailing list