I am developing a Backend Module for Typo3. The Extension Builder put this Code in the layout
<be:moduleLayout>
<f:be.pageRenderer />
<be:moduleLayout.menu identifier="ModuleMenu">
<be:moduleLayout.menuItem label="Overview of Products"
uri="{f:uri.action(controller: 'BackendProduct', action: 'index')}" />
<be:moduleLayout.menuItem label="Overview of Categories"
uri="{f:uri.action(controller: 'BackendCategory', action: 'index')}" />
<be:moduleLayout.menuItem label="Overview of Orders"
uri="{f:uri.action(controller: 'BackendOrder', action: 'index')}" />
</be:moduleLayout.menu>
<f:render section="Buttons" />
<be:moduleLayout.button.shortcutButton displayName="Shortcut" />
<f:render section="Content" />
</be:moduleLayout>
The Select is rendered but if i select one of the options nothing happens. Do i need to configure something else?
If you are using TYPO3 V11 LTS I would recommend using
ModuleTemplate:In your
initializeAction()you set themoduleTemplate. By callinggenerateMenu()you can assign menu items according to the defined action-controller combinations set in $menuItems.You could even simplyfy things by initializing the module template instance variable as well as the menu in an AbstractBackendController. This of course only makes sense if you use multiple ActionControllers.