[TYPO3-mvc] Extbase 1.3 -> 6.2 + switchableControllerActions
Jan Kornblum
jan.kornblum at gmx.de
Sat Apr 26 01:35:26 CEST 2014
Hi newsgroup,
a page contains the same plugin several times: Once as as content
element (with several allowed controller actions) and once as
typoscript (with only one allowed controller action).
With extbase 1.3 the following has worked for embedding the plugin by
typoscript:
myObject = USER
myObject {
userFunc = tx_extbase_core_bootstrap->run
pluginName = Pi1
extensionName = MyExtension
controller = MyController
action = list
switchableControllerActions {
MyModel {
1 = list
}
}
}
With extbase 6.2, an error is thrown when a different action than
"list" is called, although only the "list" action is defined in
switchableControllerActions.
Now the following adjustement seems to work to prevent the ts-embedded
plugin to listen to different actions than "list":
plugin.tx_myextention.mvc.callDefaultActionIfActionCantBeResolved = 1
But is this the right way to solve the problem with extbase 6.2?
Kind regards, Jan
More information about the TYPO3-project-typo3v4mvc
mailing list