[TYPO3-german] this->settings in eid Klassen

Bernd Pier macbepepi at me.com
Mon Feb 27 18:38:41 CET 2017


Am 27.02.17 um 14:39 schrieb Christian Platt:
> Hi Bernd,
>
>
> na, alles im Lack?
>
>
> Ja, ist alles instanziert. Ich kann ja auch auf die anderen Template-Daten zugreifen… es ist aber nichts von meiner Erweiterung zu sehen.
>
> Alle „alten“ Erweiterungen wie automaketemplate oder tt_news sind drin im config komplett tippitoppi drin  imd array, nur meine extbase Erweiterung halt nicht. Obwohl das template auch auf der richtigen seite geladen wird. Im TS-Object Broser wird alles richtig angezeigt.
> Wir das unter extbase in einem anderen Objektbereich gespeichert? Ist ja kein conf
>
>
> Schon komisch…
> $conf=$GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_phlextension.‘];
>
>
>
>> Am 27.02.2017 um 13:58 schrieb Bernd Pier <macbepepi at me.com>:
>>
>> Am 27.02.17 um 11:42 schrieb Christian Platt:
>>> Hallo Alexander,
>>>
>>> all done:
>>>    $GLOBALS['TSFE']->connectToDB();
>>>    $GLOBALS['TSFE']->fe_user = $feUserObj;
>>>   $GLOBALS['TSFE']->id = $pid;
>>>   $GLOBALS['TSFE']->determineId();
>>>   $GLOBALS['TSFE']->getCompressedTCarray(); //Comment this line when used for TYPO3 7.6.0 onwards
>>>
>>>   $GLOBALS['TSFE']->initTemplate();
>>>   $GLOBALS['TSFE']->set_no_cache();
>>>   $GLOBALS['TSFE']->getConfigArray();
>>>   $GLOBALS['TSFE']->includeTCA();
>>>
>>>
>>>
>>> Wie gesagt: auf andere Configurations Arrays z.B. tt_news kann ich zugreifen..
>>>
>>> Kann es daran liegen, dass die pi-based so zu beklommen sind, extbase setup.txt Inhalte jedoch nicht?
>>>
>>> Christian
>>>
>>>
>>>
>>>> Am 26.02.2017 um 09:44 schrieb Alexander Averbuch <alav at gmx.net>:
>>>>
>>>> Hallo Christian,
>>>>
>>>> hast du vorher
>>>>      $GLOBALS['TSFE']->determineId();
>>>>       $GLOBALS['TSFE']->initTemplate();
>>>>       $GLOBALS['TSFE']->getConfigArray();
>>>> gemacht?
>>>> _______________________________________________
>>>> TYPO3-german mailing list
>>>> TYPO3-german at lists.typo3.org
>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>>>
>> Hallo Christian,
>>
>> hast du vom Objekt ne Instanz erstellt? Sowas wie:
>> $GLOBALS['TSFE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController', $TYPO3_CONF_VARS, $pid, 0, TRUE);
>>
>> Grüsse
>>
>> Bernd
>> _______________________________________________
>> TYPO3-german mailing list
>> TYPO3-german at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>
Hi Christian,

jupp alles gut bei mir. Hoffe bei Euch auch.

>> Wir das unter extbase in einem anderen Objektbereich gespeichert?

Soweit ich weiß hat sich da nichts geändert. Du kannst dir ja mal 
spasseshalber TSFE komplett ausgeben lassen und nach deiner Extension 
suchen ;-).

Ich hab noch das hier gefunden:

  /** @var 
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface 
$configurationManager */

   $configurationManager = 
$objectManager->get('TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface');
   $settings = $configurationManager->getConfiguration(
 
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT,
        'myextension',
        'myextension_pi1'
      );
   $var = 
$settings['plugin.']['tx_myextension_pi1.']['settings.']['something'];
http://www.schmutt.de/600/extension-settings-abfragen/

Ansonsten mal in einer Extension nachschauen die AJAX benutzt.

Grüsse

Bernd




More information about the TYPO3-german mailing list