[TYPO3-english] Access TypoScript Settings in Extbase ViewHelper

David Gurk dgurk at medienwerft.de
Fri Nov 9 12:53:03 CET 2012


Hi,

you should try:
http://forge.typo3.org/projects/typo3v4-mvc/wiki/ConfigurationManager_rework

You need "Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS".

Greets

David

-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] Im Auftrag von Daniel Schmidt
Gesendet: Dienstag, 6. November 2012 10:05
An: typo3-english at lists.typo3.org
Betreff: [TYPO3-english] Access TypoScript Settings in Extbase ViewHelper

Hi folks,

I'm trying to access the typoscript settings in my custom viewhelper class. I think I'm doing it the right way but something still goes wrong as the retrieved array is empty.

I did it this way:

Configuration/TypoScript/setup.txt :
plugin.tx_extension {
	settings {
		itemsPerPage = 20
		
	}
}

Classes/ViewHelpers/TheViewHelper.php :
$settings = $this->templateVariableContainer->get('settings');

As I said, $settings is empty.

Any suggestions?

Thanks,
Daniel Schmidt

_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list