Re: DNN roles and custom configurations

  •  02-14-2008, 10:28 AM

    Re: DNN roles and custom configurations

    Rob,
     
    >>But These are not roles in the portal, they seem to be arbitraty terms for an admin, anyone signed in and anyone not signed in... is that correct?
     
     
    If the User doesn't belong to any role, the user will be treated a guest user. By default, guest user will have very limited toolbar, access.
     
    >>Do I simply add another section named by the role name to the web config and can I then also add another config file of the same name to the Security folder.. and does it then just automatically connect itself to the DNN role of that name?
     
     
    Yes.
     
    For your situation, you need to modify the web.config file and add the custom security setting for your custom role.

    How to add security settting for a custom role?
     
    Let us assume your custom role name is: Author.
     
    Just copy the following code into the web.config file.
     

         Author_AutoConfigure = "Full"
         Author_SecurityPolicyFile = "admin.config"
         Author_TemplateItemList = ""
         Author_DisableItemList = ""
         Author_AllowPasteHtml  ="true"
         Author_EditorOnPaste  = "default"
         Author_ReadOnly = "false"
         Author_ShowBottomBar ="true"
         Author_ShowHtmlMode  ="true"
         Author_ShowPreviewMode  ="true"
         Author_EnableStripScriptTags  ="false" 
         Author_EnableContextMenu    ="true"  
         Author_EnableContextMenuEditing  = "true"  
         Author_EnableContextMenuFormat   = "true"
         Author_EnableContextMenuInsert  = "true"
         Author_EnableContextMenuInsertAdvanced  = "true"
         Author_EnableContextMenuInsertFiles = "true"
         Author_EnableContextMenuInsertForms = "true"
         Author_EnableContextMenuRelative = "true"
         Author_EnableContextMenuTags = "true"
         Author_EnableContextMenuVerbs = "true"
     
    Please note that in the above code the security policy file used by "Author" is the admin.config.
     
    You can easiy create a custom security policy file and assign it to "Author".

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread