Hallo,

in der Funktion initializeAction() versuche ich nach Bedarf die
storagePid zu ändern.

Auslesen usw. geht auch und bei
$this->configurationManager->setConfiguration($configuration);
kommt auch kein Fehler.

Wenn ich aber sofort danach die Config nochmal auslese (zum debuggen)
ist der geänderte Wert nicht drin.

Jemand eine Idee warum nicht?

...Typo3 6.2beta7

Hier meine Funktion: (mit flexform: persistence.storagePid ging es auch
nicht richtig)...

    protected function initializeAction() {
                parent::initializeAction();

$configuration =
$this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
                
                if ( $this->settings['startingPoint'] != '' ) {
                        // Get the storagePid from the FlexForm
                        $configuration['persistence']['storagePid'] =
$this->settings['startingPoint'];
                        
                        
$this->configurationManager->setConfiguration($configuration);
                } elseif ( $configuration['persistence']['storagePid'] == '' ) {
                        // Set back to the default or to the current Page
                        $configuration['persistence']['storagePid'] = (
$this->settings['storagePid'] > 0 ) ? $this->settings['storagePid'] :
$GLOBALS["TSFE"]->id;
                        
                        
$this->configurationManager->setConfiguration($configuration);
                }
        }




Danke & Gruß
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an