Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When you use the NotficationHandler method to hook into the menu rendering event.
public void Handle(MenuRenderingNotification notification)
/// add menu items here
how do you tell what menu you are on (e.g content, media, settings, etc?)
under v8 you would get the tree alias in sender so could check
. but i can't find the equivalent in the info passed in the MenuRenderingNotification model.
Seems like information has been lost doing the migration. I will add it in a PR.
The TreeAlias has been added in this PR: https://github.com/umbraco/Umbraco-CMS/pull/10024
If you find other missing information in events, feel free to raise them on the issue tracker. The idea is to have all into on the notification, instead of both a sender and event args..
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted