[TYPO3-mvc] Access typoscript settings in hook

Bas van der Togt b.vandertogt at profinit.com
Mon Sep 23 11:52:35 CEST 2013


Thank your very much for your comprehensive response Florian.

I was missing the backend configuration.
This line in my setup.ts did the trick:
module.tx_euremployeesoverview < plugin.tx_euremployeesoverview

Regards,
Bas

Op 18-09-13 16:41, Florian schreef:
> I don't think the problem is link to the hook, it seems that
> getConfiguration() can work out of context with extension name and
> plugin name if necessary.
> Take care with the camelcase's extension name : 'ff_overview' =>
> "FfOverview" and the prefix "tx_" => "tx_FfOverview"
>
> You should try this :
>
> $configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS,
> 'tx_FfOverview');
>
> Check you TS setup wich is different in FE :
>
> plugin.tx_FfOverview {
>      settings {
>        data = xxx
>     }
> }
>
> and in BE :
>
> module.tx_FfOverview {
>      settings {
>        data = xxx
>     }
> }
>
>
> Have a look here for function (getPluginConfiguration
> <http://typo3.org/api/typo3cms/class_t_y_p_o3_1_1_c_m_s_1_1_extbase_1_1_configuration_1_1_frontend_configuration_manager.html#adcd7c068f361ce2866c35a9735e52cd9>)
> :
>
> http://typo3.org/api/typo3cms/_frontend_configuration_manager_8php_source.html
>
> http://typo3.org/api/typo3cms/_backend_configuration_manager_8php_source.html
>
>
> Florian
>
> www.oktopuce.fr <http://www.oktopuce.fr/>
>
> Le 18/09/2013 14:01, Bas van der Togt a écrit :
>> Yes i'm sure the extension name is correct.
>> Could be the problem that i use it inside a hook?
>> I don't extend any class.
>>
>> Op 17-09-13 16:13, Florian schreef:
>>> No more idea, are you sure that the extension name (ff_overview) is
>>> correct ?
>>>
>>> $settings =
>>> $configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS,
>>>
>>> '*ff_overview*');
>>>
>>> Florian
>>>
>>
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>



More information about the TYPO3-project-typo3v4mvc mailing list