Base solution for your next web application
Open Closed

FrontEnd Pages - IMPORTANT #2200


User avatar
0
avanekar02 created

Hello i need to add a front end page but with permissions as seen on pages after login...

Can you show me a sample of the same.

what i want is once logged in other then admin a seperate group of user should go back to the home page and have addition menus and pages with permissions and controls

thanks and happy new year


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can add those menu items to FrontEndNavigationProvider class. When defining a menu item, also define the requeired permission name like this.

    .AddItem(new MenuItemDefinition(
                        PageNames.Frontend.Home,
                        L("HomePage"),
                        url: "",
                        requiredPermissionName:"nameofPermission"
                        )