Project

General

Profile

Actions

Bug #103561

open

ActionMenus - "selected" status in the options is not set correctly

Added by Mathis Krüper 8 months ago. Updated 3 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2024-04-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello everyone, I have integrated an Action Menu as follows:

<f:be.menus.actionMenu>
    <f:be.menus.actionMenuItem label="{f:translate(key:'be_menu_start')}" action="start" controller="Message"/>
    <f:be.menus.actionMenuItem label="{f:translate(key:'be_menu_booking')}" action="list" controller="Appointment" />
    ...
</f:be.menus.actionMenu>

Unfortunately, I noticed that the "selected" status in the options is not set correctly because the token does not seem to be passed to the ActionMenuItemViewHelper.

Actions #1

Updated by Vivek Solanki 3 months ago

Hello Everyone

I also had a similar situation after making my extension compatible with TYPO3 v12; previously, in v11, it worked perfectly.

Here is my Fluid code:

<f:be.menus.actionMenu>
    <f:be.menus.actionMenuItem
            label="{f:translate(key: 'label1', extensionName: 'Extension')}" 
            controller="Controller" action="action1"/>
    <f:be.menus.actionMenuItem
            label="{f:translate(key: 'label2', extensionName: 'Extension')}" 
            controller="Controller" action="action2"/>
</f:be.menus.actionMenu>
Actions

Also available in: Atom PDF