Feature #62242
closedAdd \TYPO3\CMS\Fluid\ViewHelpers\Be\Menus\ActionMenuItemGroupViewHelper
100%
Description
Using this ViewHelper we can use OptGroups in the Backend Selectfield which controls which function selected
<?php namespace TYPO3\CMS\Fluid\ViewHelpers\Be\Menus; class ActionMenuItemGroupViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Be\Menus\ActionMenuViewHelper { /** * @var string */ protected $tagName = 'optgroup'; /** * @param string $label * @return string */ public function render($label = '') { $this->tag->addAttribute('label', $label); $options = ''; foreach ($this->childNodes as $childNode) { if ($childNode instanceof \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode) { $options .= $childNode->evaluate($this->renderingContext); } } $this->tag->setContent($options); return $this->tag->render(); } }
Usage Example
<f:be.menus.actionMenu> <f:be.menus.actionMenuItem label="Default: Welcome" controller="Default" action="index" /> <f:be.menus.actionMenuItem label="Community: get in touch" controller="Community" action="index" /> <dev:be.menus.actionMenuItemGroup label="Information"> <f:be.menus.actionMenuItem label="PHP Information" controller="Information" action="listPhpInfo" /> <f:be.menus.actionMenuItem label="Documentation" controller="Information" action="documentation" /> <f:be.menus.actionMenuItem label="Hooks" controller="Information" action="hooks" /> <f:be.menus.actionMenuItem label="Signals" controller="Information" action="signals" /> <f:be.menus.actionMenuItem label="XClasses" controller="Information" action="xclass" /> </dev:be.menus.actionMenuItemGroup> </f:be.menus.actionMenu>
Updated by Kay Strobach about 10 years ago
Please switch type of issue to FEATURE and not BUG
Updated by Mathias Schreiber almost 10 years ago
- Target version changed from 7.0 to 7.1 (Cleanup)
Updated by Gerrit Code Review over 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38487
Updated by Gerrit Code Review over 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38487
Updated by Gerrit Code Review over 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38487
Updated by Gerrit Code Review over 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38487
Updated by Gerrit Code Review over 9 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38487
Updated by Gerrit Code Review over 9 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38487
Updated by Gerrit Code Review over 9 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38487
Updated by Gerrit Code Review over 9 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38487
Updated by Gerrit Code Review over 9 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38487
Updated by Michael Oehlhof over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cb2062d69a9bf261173973ac2b9d2a65cf0961d7.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed