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

Benjamin Mack benni at typo3.org
Sat Mar 21 08:54:50 CET 2009


Hey Olly,

shouldn't we do like a

XY.maxW =
XY.maxH =

or XY.max =

to keep in style with the rest of TS?

max(30,30)

seems odd to me as an old TS user :)

All the best,
Benni.

On 19.03.2009 0:48 Uhr, Oliver Hader wrote:
> 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



More information about the TYPO3-team-core mailing list