JS libraries in the BE

Posted by & filed under TYPO3.

There are some new functions that load JS libraries: $this->doc->getPageRenderer()->loadPrototype(); Loads prototype if it wasn’t loaded already $this->doc->getPageRenderer()->loadScriptaculous(); Loads Scriptaculous, if it wasn’t loaded already $this->doc->getPageRenderer()->loadScriptaculous(‘effects,dragdrop’); Loads Scriptaculous with modules $this->doc->getPageRenderer()->loadExtJS(); Loads ExtJS. This function also accepts two parameters: if first is set to true, ext-all.css will be loaded, if second is set to true,… Read more »

t3lib_db::exec_SELECTcountRows()

Posted by & filed under TYPO3.

New method in t3lib_db allows easy execution of count SQL statement. For example: $countPages = $GLOBALS[‘TYPO3_DB’]->exec_SELECTcountRows(‘*’, ‘pages’, ‘deleted = 0’); More info: RFC: Feature Request #10091: Integrate TYPO3_DB->exec_SELECTcountRows() http://bugs.typo3.org/view.php?id=10091

config.defaultGetVars

Posted by & filed under TYPO3.

New property allows to set default GET variables in TypoScript. If the value is not passed, the default noe is used instead, and available to extensions through standard methods. If you want to set an array value, use the ‘.’ syntax. For example: config.defaultgetVars { tx_extension_pi1.variable = 2 } More info: RFC: #10040: define Default… Read more »

KeepItems

Posted by & filed under TYPO3.

New property TCEFORM.<table>.<field>.keepItems keeps declared items in the select box, while removing everything else. It should be used in PageTS. For example: TCEFORM.pages.doktype { keepItems = 1,2,255 } More info: RFC: Feature Request #5610: Extend TCEFORM_confObj on Page TSconfig by property keepItems http://bugs.typo3.org/view.php?id=5610

Configuration arrays

Posted by & filed under TYPO3.

You can now see more global arrays in the Configuration module: More info: RFC: #9867: Adding T3_SERVICES to configuration modul http://bugs.typo3.org/view.php?id=9867