[TYPO3-mvc] RFC #8318 : New feature: change initial controller and action via FlexForm.
Franz Koch
typo3.RemoveForMessage at elements-net.de
Thu Jun 17 15:43:10 CEST 2010
Hey,
Problem:
> There is no way to override the 'default' controller and action
> dispatched when a plugin is called.
> You are able to use the "switchableControllerActions"-override via
> flexform but this is just a dirty workaround because if you have a new
> action which shall be reached from all plugins you have to edit all your
> tt_content records to extend the switchableControllerActions.
>
> Solution:
> In FrontendConfigurationManager.php we need an additional method like
> "overrideFirstControllerActionFromFlexform" which is called directly
> after "overrideSwitchableControllerActionsFromFlexform"
half a year ago I created a patch for it that additionally allows to
define some action/controller presets, but none showed any interest in
it so I didn't add it on forge. A preset would be, that you f.e. write
"preset::product" in your flexforms settings and can define in TS which
action is the default action as well as which actions are switchable.
This has the benefit, that if you change the logic of your extension and
need to add a additional controller->action pair to the allowed view,
you don't have to update all your flexform keys and thus don't have to
update every flexform instance.
If you're interested, may I point you to the topic "Flexform
switchableControllerActions per model" from Martin Kutschker dated
05.01.2010?
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list