[TYPO3-mvc] Error when tring to call another controller within the same plugin.

Lorenz Ulrich lorenz-typo3 at visol.ch
Thu Dec 29 12:42:51 CET 2011


Hi Stephen

If you have other Extbase plugins in the same page you might have the 
problem described here http://forge.typo3.org/issues/31322 that is 
currently solved in Master (for TYPO3 4.7) but not in 4.6.

Best regards,

Lorenz

Am 29.12.2011 09:20, schrieb Stephen Bungert:
> Hello.
>
> I keep getting the following error:
>
> #1313855173: The controller "Item" is not allowed by this plugin....
>
> I have a model for items, and one for categories.
>
> They both have controllers, in the list action for categories I want to
> create links around the category titles, that instead of linking to some
> action in the category controller, should instead link to the list
> action of the Item controller, with an argument containing the category
> uid.
>
> I make the links like this in my fluid template:
>
> ---
> ...removed....
> <li class="category categoryId-{category.uid}{spb2:classesList(record:
> category, info: categoryInfo)}">
> <a href="{f:uri.action(controller: 'Item', action: 'list', arguments:
> {category : category.uid})}" title="{f:translate(key:
> 'category_title_titletext_filter')} {category.title}">
> {category.title}
> </a>
> </li>
> ...removed....
> ---
>
> Why do I get the error about "The controller "Item" is not allowed by
> this plugin"? It is a controller defined in ext_localconf.php
>
> Tx_Extbase_Utility_Extension::configurePlugin(
> $_EXTKEY,
> 'Sbp2fe1',
> array(
> 'Item' => 'list, single',
> 'Category' => 'list, filter',
> ),
> // non-cacheable actions
> array(
> 'Item' => '',
> 'Category' => '',
> )
> );
>



More information about the TYPO3-project-typo3v4mvc mailing list