[TYPO3-mvc] RFC #8318 : New feature: change initial controller and action via FlexForm.
Franz Koch
typo3.RemoveForMessage at elements-net.de
Thu Jun 17 16:47:33 CEST 2010
Hi Masi,
>> 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.
>
> I marked the message, but I forgot it later. Sorry.
>
> I'm still interested in the topic because I think this an issue which should be solved.
attached a patch against current trunk. To use and try it do the following:
In your flexform:
------------------------------------------------
- create a select field named switchableControllerActions just like before
- use as item value "preset::youNameIt" instead of
"Controller->action1;Controller->action2"
In your TS add the following:
------------------------------------------------
# have to automate this reference for final patch
tt_content.list.20.yourExtKey.controllerAndActionPresets =<
plugin.yourExtKey.controllerAndActionPresets
# define your preset(s)
plugin.yourExtKey.controllerAndActionPresets {
youNameIt {
controller = NameOfController
action = defaultAction
switchableControllerActions {
1 {
controller = Controller1
actions = action1
}
2 {
controller = Controller1
actions = action2
}
3 {
controller = Controller2
actions = action1
}
}
}
}
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list