[TYPO3-core] RFC #11105: Feature: Add a method to register an Extbase plugin
Steffen Kamper
info at sk-typo3.de
Sun May 17 20:03:37 CEST 2009
Hi Jochen,
how it's done in v5? If we use a new register method for extbase-based
extensions (i see the need for this) it should also use the same
register process as in v5 to fullfil the transition process.
vg Steffen
Jochen Rau schrieb:
> This is an SVN patch request.
>
> Type: New feature
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11105
>
> Branches:
> trunk
>
> Problem:
> The common methods to register a plugin are not suitable for plugins
> based on Extbase.
>
> Solution:
> I propose to have a method to register a new Extbase plugin at one
> central point.
>
> Notes:
> This method should be invoked in ext_tables.php. Below you find an
> example taken from the BlogExample.
>
> t3lib_extMgm::addExtbasePlugin(
> $_EXTKEY, // The key of the extension in lower_underscore
> 'Pi1', // A unique name of the plugin in UpperCamelCase
> 'Blog Example', // A title shown in the backend dropdown field
> array( // An array holding allowed controller-action-combinations
> 'Blog' => 'index,show,new,create,delete,deleteAll,edit',
> 'Post' => 'index,show,new,create,delete,edit,update',
> 'Comment' => 'create',
> ),
> array( // An array of non-cachable controller-action-combinations
> 'Blog' => 'delete,deleteAll,edit,update,setup,populate',
> 'Post' => 'show,delete,edit,update',
> 'Comment' => 'create',
> )
> );
>
> The method generates the necessary TypoScript code to invoke the Extbase
> Dispatcher. There are also several Unit-Tests covering the code.
>
> You find the patch attached.
>
> Regards
> Jochen
>
More information about the TYPO3-team-core
mailing list