[TYPO3-mvc] Set default controller by request

Marc Bastian Heinrichs typo3 at mbh-web.de
Sat Jan 12 15:54:21 CET 2013


Hey,

> In this example Mainmenu is the default controller.
> Is it possible to set the default controller by request?
> 
> For example:
> tx_og_menu[mainmenu] > 0 : default controller is Mainmenu
> tx_og_menu[subject] > 0 : default controller is Subject
> tx_og_menu[Question] > 0 : default controller is Question
> 
> I want this to get rid of the controller parameter in my url's.
> I know i can do this by making a seperate plugin for each controller but
> that's not what i want. I want clean url's :-)

I would suggest to use multiple plugins and use a shared namespace for
all of them:
http://forge.typo3.org/projects/typo3v4-mvc/wiki/Configurable_Plugin_Namespaces


Best
Marc Bastian


More information about the TYPO3-project-typo3v4mvc mailing list