Customizing Toolbars in DNN3.1

Last post 01-02-2006, 1:47 PM by Adam. 5 replies.
Sort Posts: Previous Next
  •  08-24-2005, 3:38 PM 9902

    Customizing Toolbars in DNN3.1

    Hi
    I think I am doing something wrong.  I am trying to customise the Toolbars for a registered user.

    I copied the autoconfig 'Full.config' and called the copy RegisteredUsers.config then went to the web.config and changed the Registered_AutoConfigure = "Full" line to Registered_AutoConfigure = "RegisteredUsers".  However when I logged into the site as a registered user I only see a toolbar with basic formatting.  Any ideas what I am doing wrong?

    TIA

    Antony

  •  08-24-2005, 4:41 PM 9904 in reply to 9902

    Re: Customizing Toolbars in DNN3.1

    Antony,

    AutoConfigure Enumeration-Represents Several predefined sets of buttons. These configurations are applied using AutoConfigure property.
    AutoConfigure Enumeration
    Represents Several predefined sets of buttons. These configurations are applied using AutoConfigure property.
    [Visual Basic]
    Public Enum AutoConfigure
    [C#]
    public enum AutoConfigure
    Members
    Member Name
    Description
    None
    Disables all items on the toolbar
    Full
    Enables the buttons in the ~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/Full.config file
    Full_noform
    Enables the buttons in the ~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/Full_noform.config file
    Minimal
    Enables the buttons in the ~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/Minimal.config file
    Simple
    Enables the buttons in the ~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/Simple.config file
    Gecko
    Enables the buttons in the ~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/Gecko.config file

     
     "RegisteredUsers" is not a member of AutoConfigure Enumeration. So it will not work. CuteEditor has a property named ConfigurationPath  which allows you specify the path of your custom configuration file.

    http://cutesoft.net/developer+guide/Create_custom_configuration_file.htm

    However this property is not available in the current provider for DNN.


    Suggestion:

    You can load the different configuration file dynamically for the different roles

    Example:

         Admin_AutoConfigure = "Full"
         Registered_AutoConfigure = "Simple"
         Guest_AutoConfigure = "Minimal" 

    Then modify the built-in  configuration file directly.

    Hope it helps.

    Let me know if you have any further questions.

     

    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

  •  08-24-2005, 5:46 PM 9908 in reply to 9904

    Re: Customizing Toolbars in DNN3.1

    Adam
    Sorry for maybe asking a dumb question...

    So what you are saying is that in the current DNN provider the only items that can be set for a 'XXX_AutoConfigure' item is one of the 6 .config files you mentioned in your post? And I just need to make changes to these files?

    Antony
  •  08-25-2005, 12:14 PM 9921 in reply to 9908

    Re: Customizing Toolbars in DNN3.1

    Antony,
     
    Yes, you only choose those 6 config files  in the current provider.

    We will update the provider in the version 5.0.
     
     

    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

  •  01-02-2006, 10:01 AM 14343 in reply to 9904

    Re: Customizing Toolbars in DNN3.1

    I found this information very helpful, along with the how-to's on the site yet I'm stuck.  I need to have my registered users on a DNN 3.1.1 version with the latest CE build be set up with a basic toolbar (modified simple autoconfig).  I've been snooping around CEHtmlEditorProvider.vb file and haven't found a place for the following to be placed.
     
    Example:

         Admin_AutoConfigure = "Full"
         Registered_AutoConfigure = "Simple"
         Guest_AutoConfigure = "Minimal"
     
    Am I missing something in the .vb file or should I be looking elsewhere (like in the web.config file)?
  •  01-02-2006, 1:47 PM 14344 in reply to 14343

    Re: Customizing Toolbars in DNN3.1

    Yes, you need to modify the web.config file instead of the CEHtmlEditorProvider.vb file.
     
     <add name="CEHtmlEditorProvider"
            type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider"
            providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\"
            UseDNNRootImageDirectory="true"
            RemoveServerNamesFromUrl="true"
            ConvertHTMLTagstoLowercase="true"
            UseRelativeLinks="true"
            UseHTMLEntities="true"
         RenderRichDropDown="true"
         UseSimpleAmpersand="false"
         CustomCulture=""
         ThemeType="Office2003_BlueTheme"
         DisableAutoFormatting="false"
         BreakElement="div"
         EditorBodyStyle="background-color:#ffffff"
         Admin_AutoConfigure = "Full"
         Admin_SecurityPolicyFile = "admin.config"
         Admin_TemplateItemList = ""
         Admin_DisableItemList = ""
         Admin_AllowPasteHtml  ="true"
         Admin_EditorOnPaste  = "default"
         Admin_ReadOnly = "false"
         Admin_ShowBottomBar ="true"
         Admin_ShowHtmlMode  ="true"
         Admin_ShowPreviewMode  ="true"
         Admin_EnableStripScriptTags  ="false" 
         Admin_EnableContextMenu    = "true"
         Admin_EnableContextMenuEditing  = "true"  
         Admin_EnableContextMenuFormat   = "true"
         Admin_EnableContextMenuInsert  = "true"
         Admin_EnableContextMenuInsertAdvanced  = "true"
         Admin_EnableContextMenuInsertFiles = "true"
         Admin_EnableContextMenuInsertForms = "true"
         Admin_EnableContextMenuRelative = "true"
         Admin_EnableContextMenuTags = "true"
         Admin_EnableContextMenuVerbs = "true"          
         
         Registered_AutoConfigure = "Simple"
         Registered_SecurityPolicyFile = "default.config"
         Registered_TemplateItemList = ""
         Registered_DisableItemList = ""
         Registered_AllowPasteHtml  ="true"
         Registered_EditorOnPaste  = "default"
         Registered_ReadOnly = "false"
         Registered_ShowBottomBar ="true"
         Registered_ShowHtmlMode  ="true"
         Registered_ShowPreviewMode  ="true"
         Registered_EnableStripScriptTags  ="false" 
         Registered_EnableContextMenu    ="true" 
         Registered_EnableContextMenuEditing  = "true"  
         Registered_EnableContextMenuFormat   = "true"
         Registered_EnableContextMenuInsert  = "true"
         Registered_EnableContextMenuInsertAdvanced  = "true"
         Registered_EnableContextMenuInsertFiles = "true"
         Registered_EnableContextMenuInsertForms = "true"
         Registered_EnableContextMenuRelative = "true"
         Registered_EnableContextMenuTags = "true"
         Registered_EnableContextMenuVerbs = "true"   
         
         Guest_AutoConfigure = "Minimal"
         Guest_SecurityPolicyFile = "default.config"
         Guest_TemplateItemList = ""
         Guest_DisableItemList = ""
         Guest_AllowPasteHtml  ="true"
         Guest_EditorOnPaste  = "default"
         Guest_ReadOnly = "false"
         Guest_ShowBottomBar ="true"
         Guest_ShowHtmlMode  ="true"
         Guest_ShowPreviewMode  ="true"
         Guest_EnableStripScriptTags  ="false" 
         Guest_EnableContextMenu    ="true"  
         Guest_EnableContextMenuEditing  = "true"  
         Guest_EnableContextMenuFormat   = "true"
         Guest_EnableContextMenuInsert  = "true"
         Guest_EnableContextMenuInsertAdvanced  = "true"
         Guest_EnableContextMenuInsertFiles = "true"
         Guest_EnableContextMenuInsertForms = "true"
         Guest_EnableContextMenuRelative = "true"
         Guest_EnableContextMenuTags = "true"
         Guest_EnableContextMenuVerbs = "true"   
                
            />
     
    Keep me posted
     
     

    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 as RSS news feed in XML