[TYPO3-german] extbase: setConfiguration klappt nicht

Renzo Bauen typo3 at conpassione.ch
Thu Mar 20 22:49:58 CET 2014


Hallo Hendrik

nur so eine Idee. Kann es sein, dass Deine Vergleiche nicht
funktionieren? Ist die storagePid wirklich '' und nicht #null oder 0?
Wenn die Vergleiche nämlich nicht greifen, dann wird die PID auch nicht
neu gesetzt von deinem Code.
Ich habe die PID noch nie so gebraucht, aber vielleicht hilft es Dir ja
weiter.

Gruss Renzo
 
-- 
conPassione gmbh
Buchshaldenstrasse 10A
CH-3661 Uetendorf

Renzo Bauen
Dipl. Ing. ETH/SIA, ScrumMaster
+41 33 345 00 92
+41 79 330 10 11
www.conpassione.ch
TYPO3 Bronce Associate
Ideen entfalten mit Leidenschaft 

Am Donnerstag, den 20.03.2014, 09:27 +0100 schrieb Hendrik:

> 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 at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german


More information about the TYPO3-german mailing list