[TYPO3-mvc] Include a Extbase Plugin via Typoscript

Marc Bastian Heinrichs typo3 at mbh-web.de
Fri May 13 19:30:17 CEST 2011


Hey,

> Tx_Extbase_Utility_Extension::configurePlugin(
>  $_EXTKEY,
>  'List',
>  array(
>   'Slideimage' => 'list',
>  ),
>  array(
>   'Slideimage' => ' ',
>  )
> );
> ?>

> plugin.tx_st9headerslide.widgets {
>   listWidget = USER
>   listWidget {
>     userFunc = tx_extbase_core_bootstrap->run
>     pluginName = List
>     extensionName = st9headerslide
>     controller = Slideimage
>     action = list
>     switchableControllerActions {
>         Slideimage {
>             1 = list
>             }
>      } 
>      view =< plugin.tx_st9headerslide.view
>     persistence =< plugin.tx_st9headerslide.persistence
>  }
> }

for version 1.3 this is more, than you need.
Have a look, how tt_content.list.20.st9headerslide_list is
registered when you use the configuration above.

It sould be
tt_content.list.20.st9headerslide_list = USER
tt_content.list.20.st9headerslide_list {
	userFunc = tx_extbase_core_bootstrap->run
	extensionName = St9headerslide
	pluginName = List
}

Notice that the pluginName and the extensionName have to be written in
UpperCamelCase.

Best
Marc Bastian


More information about the TYPO3-project-typo3v4mvc mailing list