f:be.menus.actionMenuItem

You can use this ViewHelper to create a menu entry for your backend module. For this to work, the call to this ViewHelper must be placed within a f:be.menus.actionMenu ViewHelper.

Properties

label

Variable type
String
Description
The name to display in the menu
Default value
NULL
Required
Yes

controller

Variable type
String
Description
The Controller in which the appropriate Action lies.
Default value
NULL
Required
Yes

action

Variable type
String
Description
Which Action should be called when this menu entry is selected.
Default value
NULL
Required
Yes

arguments

Variable type
Array
Description
Parameters to be passed to the Action.
Default value
Empty array
Required
Yes

Example

The following menu contains a Select element with two menu entries. Selecting an entry calls the indicated Action within the indicated Controller. As you can see, you can either define the menu entry label directly, or (better) through the use of the f:translate ViewHelper.

<f:be.menus.actionMenu>
  <f:be.menus.actionMenuItem label="New" controller="Fluid" action="new" />
  <f:be.menus.actionMenuItem label="{f:translate(key='List')}" controller="Fluid" action="list" />
</f:be.menus.actionMenu>