[TYPO3-core] RFC: Feature request 4006 (Load $GLOBALS['TSFE'] with image dimensions when IMG_RESOURCE is used)

Dmitry Dulepov dmitry at typo3.org
Mon Jan 8 11:24:24 CET 2007


Hi!

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.)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4006.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070108/1b459437/attachment.txt 


More information about the TYPO3-team-core mailing list