DNN roles and custom configurations

Last post 03-14-2009, 7:29 PM by robax. 7 replies.
Sort Posts: Previous Next
  •  02-14-2008, 5:38 AM 37041

    DNN roles and custom configurations

    And hello again
     
    I understand that I can create different configurations for different roles.
    Does that also mean dotnetnuke roles?
     
    The provider appears to have roles called Admin, Registered and Guest. 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?
     
    And then, what is required in order to apply a config for a particular role that is in one of the portals in my DNN portal system. 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?
     
    I'll run out of questions eventually :)
     
    I'm really trying hard to assess if this can replace FCK without losing too much functionality.
    Rob
  •  02-14-2008, 10:28 AM 37052 in reply to 37041

    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

  •  02-22-2008, 9:20 PM 37304 in reply to 37052

    Re: DNN roles and custom configurations

    Cool thanks Adam,
     
    I'll go and test a custom setup for a particular role. I'm wondering if this might fail because some roles, e.g. "Content Manager" have spaces in their names. The way that code in the web config has underscores makes me think it might not work.
     
    I'll give it a shot anyhow and see.
    Rob
  •  02-22-2008, 9:32 PM 37305 in reply to 37304

    Re: DNN roles and custom configurations

    Yep, I added the bits below and it crashed
     
      Content Manager_AutoConfigure = "Full"
      Content Manager_SecurityPolicyFile = "admin.config"
      Content Manager_TemplateItemList = ""
      Content Manager_DisableItemList = ""
      Content Manager_AllowPasteHtml  ="true"
      Content Manager_EditorOnPaste  = "default"
      Content Manager_ReadOnly = "false"
      Content Manager_ShowBottomBar ="true"
      Content Manager_ShowHtmlMode  ="true"
      Content Manager_ShowPreviewMode  ="true"
      Content Manager_EnableStripScriptTags  ="false"
      Content Manager_EnableContextMenu    ="true"  
      Content Manager_EnableContextMenuEditing  = "true"  
      Content Manager_EnableContextMenuFormat   = "true"
      Content Manager_EnableContextMenuInsert  = "true"
      Content Manager_EnableContextMenuInsertAdvanced  = "true"
      Content Manager_EnableContextMenuInsertFiles = "true"
      Content Manager_EnableContextMenuInsertForms = "true"
      Content Manager_EnableContextMenuRelative = "true"
      Content Manager_EnableContextMenuTags = "true"
      Content Manager_EnableContextMenuVerbs = "true"    
     
     
    Is there a way to deal with the space in the role name perhaps?
    Rob
  •  03-14-2009, 8:01 AM 49886 in reply to 37305

    Re: DNN roles and custom configurations

    Is this still the case or is there a work around?
     
    H
  •  03-14-2009, 9:17 AM 49888 in reply to 49886

    Re: DNN roles and custom configurations

    Nope, my questions must have been too complicated and I never received any further replies. So I gave up on Cute, checked out RAD and then returned to FCK. The FCK provider is ultimately more flexible and better integrated with DNN, especially in a multi-portal situation.

  •  03-14-2009, 10:57 AM 49890 in reply to 49888

    Re: DNN roles and custom configurations

    Is that the FCK thats been tweaked by dnn?
     
    How do you find it for cross browser support? Thats the main reason I was looking at Cute.
     
    H
  •  03-14-2009, 7:29 PM 49893 in reply to 49890

    Re: DNN roles and custom configurations

    Yes, either upgrade to DNN 4.9.2 or download and install the current FCK package off the DNN downloads page. The version of FCK included in it now works across all browsers, including Safari, Chrome and Opera. The context menus are different in different browsers, but that's about the only variation.
    Rob
View as RSS news feed in XML