ActionMenuViewHelper extends AbstractTagBasedViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:be.menus.actionmenu>

FinalYes

ViewHelper which returns a select box, that can be used to switch between multiple actions and controllers and looks similar to TYPO3s funcMenu.

.. note:: This ViewHelper 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>

Select box 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>

Localized select box.

Table of Contents

Properties

$tagName  : string

Methods

compile()  : mixed
initializeArguments()  : void
render()  : string
getPageRenderer()  : PageRenderer

Properties

$tagName

protected string $tagName = 'select'

Methods

compile()

public compile(string $argumentsName, string $closureName, string &$initializationPhpCode, ViewHelperNode $node, TemplateCompiler $compiler) : mixed
Parameters
$argumentsName : string
$closureName : string
$initializationPhpCode : string
$node : ViewHelperNode
$compiler : TemplateCompiler

initializeArguments()

public initializeArguments() : void

render()

public render() : string
Return values
string

        
On this page

Search results