$GLOBALS[‘TYPO3_USER_SETTINGS’]

Posted by & filed under TYPO3.

New array is similar to TCA in structure, but applies to BE user settings. It can be manipulated just like TCA, but has fewer options and properties. From Core API documentation: $GLOBALS[‘TYPO3_USER_SETTINGS’][‘ctrl’] property: dividers2tabs data type: int description: Render user setup with(out) tabs, settings are as in TCA: 0 = no tabs, 1 = tabs,… Read more »

Hide Save & View

Posted by & filed under TYPO3.

New UserTS option allows to hide the Save & View button for certain tables, where it doesn’t make sense: options.saveDocView.[table] = 0 More info: RFC: #10827: Hide “Save and View”-button when editing a content-element http://bugs.typo3.org/view.php?id=10827

Line breaks in GIFBUILDER

Posted by & filed under TYPO3.

Text rendered through GIFBUILDER can now span several lines if it exceeds a certain width. New properties breakWidth and breakSpace make this possible. Example: … 10 = IMAGE 10 {    file = GIFBUILDER    file {       XY = [20.w]+5,[20.lineHeight]*0.3+[20.h]       transparentBackground = 1       # Render regular text       20 = TEXT       20 {          text = This is a… Read more »

Max value in GIFBUILDER

Posted by & filed under TYPO3.

Sometimes its not possible to find the dimensions of the entire element in GUIFBUILDER, however these dimensions need to be used in offsets. The new function max() returns the maximum of the two values. For example: XY = [10.w]+[20.w], max([10.h], [20.h]) More Info: RFC Feature #10725: Integrate possibility to determine maximum of multiple values in… Read more »

t3lib_div::isOnCurrentHost()

Posted by & filed under TYPO3.

New function isOnCurrentHost gives a convenient way of checking that the passed URL matches the current host. One use would be to limit BE editors to referencing URLs only to the current host. Ex: if (t3lib_div::isOnCurrentHost($url)) {    // Do something } More info: RFC: #10724: Feature: Provide a check that compare a given URL with… Read more »