be.menus.actionMenuItem

View helper which returns an option tag. This view helper only works in conjunction with TYPO3CMSFluidViewHelpersBeMenusActionMenuViewHelper Note: This view helper is experimental!

Examples

Simple:

<f:be.menus.actionMenu>
   <f:be.menus.actionMenuItem label="Overview" controller="Blog" action="index" />
   <f:be.menus.actionMenuItem label="Create new Blog" controller="Blog" action="new" />
   <f:be.menus.actionMenuItem label="List Posts" controller="Post" action="index" arguments="{blog: blog}" />
</f:be.menus.actionMenu>

Output:

Selectbox with the options "Overview", "Create new Blog" and "List Posts"

Localized:

<f:be.menus.actionMenu>
   <f:be.menus.actionMenuItem label="{f:translate(key='overview')}" controller="Blog" action="index" />
   <f:be.menus.actionMenuItem label="{f:translate(key='create_blog')}" controller="Blog" action="new" />
</f:be.menus.actionMenu>

Output:

localized selectbox

Arguments

additionalAttributes

DataType
mixed
Required
true
Description
Additional tag attributes. They will be added directly to the resulting HTML tag.

data

DataType
mixed
Required
true
Description
Additional data-* attributes. They will each be added with a “data-” prefix.

label

DataType
string
Required
true
Description
Label of the option tag

controller

DataType
string
Required
true
Description
Controller to be associated with this ActionMenuItem

action

DataType
string
Required
true
Description
The action to be associated with this ActionMenuItem

arguments

DataType
mixed
Default
array ()
Required
true
Description
Additional controller arguments to be passed to the action when this ActionMenuItem is selected