Is it possible to configure some items from back-office's application_menu to open in a new browser tab?
There is an option called "Target Window" for frontend_menu but not for application_menu.
Is it possible to configure some items from back-office's application_menu to open in a new browser tab?
There is an option called "Target Window" for frontend_menu but not for application_menu.
Yes, it is possible with the navigation.yml
configuration that is merged across all the installed bundles.
You can use the link_attributes
option to specify the target _blank for the menu item link.
E.g.:
link_attributes:
target: _blank
For more details on navigation.yml features, see the OroNavigationBundle documentation.
Looks like there is a bug with "link_attributes"
An exception has been thrown during the rendering of a template ("Cannot parse "Resources/config/oro/navigation.yml" configuration.
Unrecognized option "link_attributes" under "navigation.menu_config.items.test_item".
Did you mean "linkAttributes"?").
This works linkAttributes
:
test_item:
label: 'Test Item'
uri: 'link'
linkAttributes:
target: _blank
tree:
application_menu:
children:
ttttt:
children:
test_item: ~