Adding Fields to the Rootline to Enable sliding for custom fields

In certain situations it is necessary to add fields to the rooline so that we can have the sliding feature enabled for these fields.

The fields can be added to rootline fields list through the install tool –> All Config or if you are developing an extension, then you can write the following code in the ext_localconf.php


$rootlinefields = &$GLOBALS["TYPO3_CONF_VARS"]["FE"]["addRootLineFields"];
/* Note the ampersand (&) symbol. Don’t Forget it!!! */

$NewRootlinefields = "tx_nmcmenu_overcolor,tx_nmcmenu_outcolor,tx_nmcmenu_actcolor";
$rootlinefields .= ($rootlinefields == ”)?$NewRootlinefields:’,’.$NewRootlinefields;