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

Michael Stucki michael at typo3.org
Fri Jan 19 16:49:20 CET 2007


Hi Dmitry,

documentation is changed, please check the attached patch.

- michael

Dmitry Dulepov wrote:

> 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."
> 
> 

-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_4006_doc.diff
Type: text/x-diff
Size: 664 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070119/c0433555/attachment.bin 


More information about the TYPO3-team-core mailing list