[TYPO3-ect]  lib/div: Overriding TS config via FF
    Jochen Rieger 
    j.rieger at connecta.ag
       
    Thu Feb 28 15:21:23 CET 2008
    
    
  
Hey lib/div devs,
finally I managed to dig deeper into the lib/div framework instead of 
just following the mailinglists discussions about it. A long awaited 
situation! :)
I found one behaviour to be worth changed (or maybe I just did not find 
the right way to do it):
When retrieving configurations via
$this->configurations->get('someConfKey');
I will ALWAYS get the FF value in case the same key exists in TS and FF. 
I think it might be better to use the flexform value ONLY IF something 
was entered there. Would be kind of a nobrainer in
class.tx_lib_configurations.php:
foreach((array) $data as $sheet => $languages) {
	foreach((array) $languages[$languagePointer] as $key => $def) {
		
		// just use ff value if something was entered
		if ($def[$valuePointer] != '') {
			$this->set($key, $def[$valuePointer]);
		}
	}
}
What do you think?
Cheers,
Jochen
--
Connecta AG TYPO3 Development
http://www.connecta.ag
    
    
More information about the TYPO3-team-extension-coordination
mailing list