Hi, is it possible to somehow add the ability to specify ID and CLASS in the form of creating a menu item or tab. It would be very useful to style menus as well as various actions on them using javascript

alt

CommentFileSizeAuthor
09.9 - menu tab.png45.15 KBstrelkov.av

Comments

strelkov.av created an issue. See original summary.

damienmckenna’s picture

Status: Active » Closed (won't fix)

You can do that using other modules, e.g. Menu Attributes. It's out of scope for Views.

strelkov.av’s picture

Yes, of course the Menu Attributes module makes this possible, although its functionality is available only to items created specifically in the Menu section.
Tabs and secondary tabs created using Views are not visible in the menu section, and therefore are not available for the module's Menu attributes.

I just thought that Views has a Description field in the menu settings, which allows you to add a description for the tab (although it should be noted that I didn't see the text entered there anywhere in the HTML code :( )

And if, by analogy, we could add 2 more fields of the ID and CLASS type there, which would be added when rendering tabs or menu items