HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback

There are scenarios where an add-on has a few views, but only some of them should be accessible through the menu. For example, the add-on "Email manager" has three views available in its menu:

  • Overview

  • Create email

  • Reports

The menu provider looks like this:

**Create email** is a form with a regular submit button. After a user sends an email, they are redirected to the **Mail sent** confirmation page, which is not rendered in the menu; however, it should have the **Create email **menu item highlighted.

To do this, the **Mail sent** view should also be added to the provider with its path based on the **Create email** path (_/global/emails/create/mailsent_) and the `IsAvailable` option set to false. Then, the option is not rendered in the menu, but will highlight its direct parent.