Wednesday, 23 August 2017

Editor Access to Episerver Categories Admin Functionality

Overview


EPiServer separates the functionality for website editors and site administrators by using two distinct user interfaces (Edit & Admin interface).
Edit mode offers granular control by allowing you to set access rights for content.

The requirement is to provide editor access to a particular admin functionality i.e Categories, without providing full access to the user to the admin interface.

Access to the admin mode is defined via a location path configuration set in web config, with access to users in the WebAdmins and the Administrators roles. There is no option available to provide access to functionality to other roles within the admin interface.

Solution


Add the following entry in web.config to give WebEditors access to Categories functionality in the admin interface.

  
    
      
        
        
      
    
  

If user login in the CMS with a role WebEditors and try to access page http://www.yourdomain.com/EPiServer/CMS/admin/Categories.aspx, the user will be able to access Categories functionality without exposing any other Admin functionality.

Taking this example one step further I want to have a menu item in Episerver CMS global navigation so WebEditors can click the menu to get access to Categories.

The simple way to achieve this to add Episerver navigation menu item in web.config and done with it.


   
       
    
  

The potential problem with the above solution is the Categories menu item will visible to all users regardless of their role or their ability access admin Categories functionality.

To restrict Categories menu for certain roles and we have to write some code to unleash the potential of Episerver MenuProviders.

To add Categories sub menu item in global menu section inside CMS menu with access rights.


You can change "/global/cms/categories" to "/global/categories" to make categories as the main menu item.

If you are new to MenuProvider I recommend reading through the documentation http://world.episerver.com/documentation/developer-guides/CMS/user-interface/Extending-the-navigation/

2 comments :

  1. Now, if this is the case|if so|if that is so}, how are they REALLY random if they that they} should hit before the jackpot reaches a sure amount? They have to be programmed strive this|to do this} if they that they} should hit by {a sure amount|a particular amount|a sure quantity}. I have have} played sure online slot machines the 토토사이트 place the "Payout" or money won quantity is displayed BEFORE the bonus recreation spins finish. Casinos usually inform you that slot machines use a computer to generate random numbers, determining the game's outcomes.

    ReplyDelete
  2. We're taking you to a model new experience to play all of your favorite on line casino video games for real cash. For UK players, free slots aren't allowed except you register. The greatest place to play free slots for UK players, 메리트카지노 is at a trusted online on line casino that allows free play. This is as a result of|as a result of} they need to comply with strict UK Government laws. The greatest free slots for UK players could be discovered at Mansion Casino and Casino.com.

    ReplyDelete