[TYPO3-dev] Setting setup.override

Tapio Markula tapio.markula at atwebteam.com
Wed Jan 17 10:02:07 CET 2007


Hi

Setting setup.override... is problematic.

Many times those would be *not* saved into database
because users don't necessarily save their user settings!

In order to avoid this problem developers should
use TS Config field too and don't relay on 'uc' field only.

$overrideProperties = t3lib_BEfunc::getModTSconfig($id,'setup.override');
		
if(!array_key_exists('someConfig',$BE_USER->uc) && 
isset($overrideProperties['properties']['someSetting'])
$BE_USER->uc['someSetting']=$overrideProperties['properties']['someSetting'];

and the use the value as normally

That is the only way to be sure, that override really works in all 
cases! This is just as for hint and this concerns for example
new option to start from user defined module.




More information about the TYPO3-dev mailing list