[TYPO3-core] RFC Feature #10725: Integrate possibility to determine maximum of multiple values in GIFBUILDER

Oliver Hader oliver at typo3.org
Thu Apr 16 23:28:55 CEST 2009


FYI: Committed to SVN Trunk (rev. 5324)
The modifcation to TSref was added to the pending documentation page in
the TYPO3 wiki.

olly


Oliver Hader schrieb:
> This is an SVN patch request.
> 
> Type: Feature
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=10725
> 
> Branches: Trunk
> 
> Problem:
> Imagine you've two different and dynamically controlled elements in a
> GIFBUILDER object, e.g. a capital letter and then some more small text.
> It's not possible to determine the height of the whole element easily.
> 
> Solution:
> Integrate a max() function for calculation offsets, like:
> XY = [10.w]+[20.w], max([10.h], [20.h])
> Thus, the height in the example is the maximum of the values in 10.h and
> 20.h.
> If the "max()" keyword is found in the string the inner content gets
> pre-calculated before the regular process in calcOffset().
> 
> Notes:
> A TypoScript test case is attached that created a big word followed by
> some smaller words baselined to the first one. The height of the object
> is given by the first object - since it defines the meximum.
> 
> Documentation changes:
> TSref: GIFBUILDER, section "NOTE (+calc)"
> Add after first paragraph and before example starts:
> On using the special function max() the maximum of multiple values can
> be determined.
> Example: XY: [10.w]+[20.w], max([10.h], [20.h])
> 
> 
> olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list