Aspnetboilerplate: Feature how to control navigation

Created on 17 Oct 2016  路  3Comments  路  Source: aspnetboilerplate/aspnetboilerplate

Hi,

I want to design the function that tenant with different edition have different navigation, I think this can be implemented by feature, but I just see the navigation item just judge pemissions of user roles. Can you tell me how to control navigation with feature?

.AddItem(
new MenuItemDefinition(
"UserManagement",
new LocalizableString("UserManagement", "SimpleTaskSystem"),
url: "/Administration/Users",
icon: "fa fa-users",
requiredPermissionName: "SimpleTaskSystem.Permissions.UserManagement"
)
)

thank you.

question

Most helpful comment

Hi, the MenuItemDefinition has a property called featureDependency, you can set the features needed for the menu to be displayed.

image

All 3 comments

Hi, the MenuItemDefinition has a property called featureDependency, you can set the features needed for the menu to be displayed.

image

Roles and menu items and features and how they come together is a little cloogy if you ask me.

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hikalkan picture hikalkan  路  3Comments

abolfazlmohammadiseif picture abolfazlmohammadiseif  路  3Comments

satishsomani picture satishsomani  路  3Comments

Mehranh picture Mehranh  路  3Comments

cuibty picture cuibty  路  3Comments