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 long text that will hopefully break automatically...
         breakWidth = 250
         breakSpace = 1.0
         offset = 0,[20.lineHeight]
         niceText = 0
      }
   }
}

More info:
RFC Feature #10666: Integrate automatic line breaks in GIFBUILDER
http://bugs.typo3.org/view.php?id=10666

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 GIFBUILDER
http://bugs.typo3.org/view.php?id=10725

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 the host, TYPO3 is running on!
http://bugs.typo3.org/view.php?id=10724

Posted by & filed under TYPO3.

The filelist can now be manipulated by TS. The new property will fill in the list from a declared folder:
tt_content.uploads.20.filePath

It allows you to set the filepath where images are taken from to be set via TypoScript, with a stdWrap option to dynamically set this value. By default this is set to get the value from the data record field “select_key”

Example:
Set filepath in the content element to:
fileadmin/users/{TSFE:fe_user|user|username}/

Then add the following TS:
tt_content.uploads.20.filePath.field = select_key
tt_content.uploads.20.filePath.insertData = 1

More info:
RFC #10673: Feature Request: Enable CSC “uploads” filelist to be manipulated by TS
http://bugs.typo3.org/view.php?id=10673