I’m trying to add a small section in the user dropdown menu, and have been unsuccessful so far. I know that I can add items to the hamburger-menu through the decorateWidget function. However, it doesn’t look like the user-menu has a way to hook into it. Since the items I want to add are user-related, I would like to be able to add these links there and not in the hamburger-menu.
I have tried adding it in a plugin initialiser and simply add some DOM nodes, but the user-menu isn’t generated yet in the DOM before the user icon has been clicked.
Does anyone have any idea what the most graceful way of doing this is?
First of all, thanks for the reply, it’s greatly appreciated. I’ve stumbled upon the possibility to add these glyphs. However, I’m looking for a somewhat different link.
A problem with putting your links there is that they might get pushed off the screen when the notification list fills up. That’s why there’s an extensibility point for the hamburger ☰ menu instead
I understand that the extensibility exists in the hamburger menu for this purpose and am aware of the risks of putting extra links in the user-menu. I do am still interested in figuring how to do to it like I described earlier. The “Log out” link also is always visible, and would like to re-use the logic used for that link as well for what I’m trying to achieve.
These are the requirements I’m currently working with, and we’re taking the risk of the notification-list being too long. Your advise is absolutely appreciated, and this message is not meant in anyway to disregard what you said, since you’re probably right.