Custom toolbars in DotNetNuke

Last post 11-09-2009, 3:56 PM by Adam. 6 replies.
Sort Posts: Previous Next
  •  11-09-2009, 3:54 AM 56972

    Custom toolbars in DotNetNuke

    I am using Cute Editor in my DNN install, but as visitors arrive at certain pages I would like to customize the toolbar. I looked at http://cutesoft.net/developer+guide/index.html, but that gives no clue how to customize toolbars for DNN.
    Code to include in page:

    <%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx" %>

    <dnn:texteditor id="txtObjective" runat="server" />

  •  11-09-2009, 10:04 AM 56980 in reply to 56972

    Re: Custom toolbars in DotNetNuke

    To add a custom button to DNN editor, you need to modify the provider Providers\HtmlEditorProviders\CEHtmlEditorProvider\CEHtmlEditorProvider.vb.
     
    To modify the DNN provider, you need to understand asp.net and VB.net.
     
    Hope it helps.

    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

  •  11-09-2009, 10:29 AM 56982 in reply to 56980

    Re: Custom toolbars in DotNetNuke

    No need to add a custom button... and I'm aware of how to customize the toolbars... What I'm looking for is a way to programmatically customize the toolbars. Is this possible (so that user A - regardless of his role - might see certain functionality, while user B - maybe in the same role as user A - can see different functionality)?
     
    Thanks
  •  11-09-2009, 10:31 AM 56983 in reply to 56982

    Re: Custom toolbars in DotNetNuke

    dsmajor:
    No need to add a custom button... and I'm aware of how to customize the toolbars... What I'm looking for is a way to programmatically customize the toolbars. Is this possible (so that user A - regardless of his role - might see certain functionality, while user B - maybe in the same role as user A - can see different functionality)?
    Also - this might be a bit more complex because I am using it as a custom HTML provider in DNN.
     
    Thanks
  •  11-09-2009, 10:34 AM 56984 in reply to 56982

    Re: Custom toolbars in DotNetNuke

    Yes. You can modify the web.config file. For example, change the AutoConfigure setting.
     
     
               Admin_AutoConfigure = "Full_noform"
               Admin_SecurityPolicyFile = "admin.config"
               Admin_TemplateItemList = ""
               Admin_DisableItemList = ""
               Admin_AllowPasteHtml  ="true"
               Admin_EditorOnPaste  = "ConfirmWord"
               Admin_ReadOnly = "false"
               Admin_ShowBottomBar ="true"
               Admin_ShowHtmlMode  ="true"
               Admin_ShowPreviewMode  ="true"
               Admin_ShowTagSelector  ="true"
               Admin_EnableStripScriptTags  ="false" 
               Admin_EnableContextMenu    = "true"    
               
               Registered_AutoConfigure = "Full_noform"
               Registered_SecurityPolicyFile = "default.config"
               Registered_TemplateItemList = ""
               Registered_DisableItemList = ""
               Registered_AllowPasteHtml  ="true"
               Registered_EditorOnPaste  = "ConfirmWord"
               Registered_ReadOnly = "false"
               Registered_ShowBottomBar ="true"
               Registered_ShowHtmlMode  ="true"
               Registered_ShowPreviewMode  ="true"
               Registered_ShowTagSelector  ="true"
               Registered_EnableStripScriptTags  ="false" 
               Registered_EnableContextMenu    ="true" 
               
               Guest_AutoConfigure = "Minimal"
               Guest_SecurityPolicyFile = "default.config"
               Guest_TemplateItemList = ""
               Guest_DisableItemList = ""
               Guest_AllowPasteHtml  ="true"
               Guest_EditorOnPaste  = "ConfirmWord"
               Guest_ReadOnly = "false"
               Guest_ShowBottomBar ="true"
               Guest_ShowHtmlMode  ="true"
               Guest_ShowPreviewMode  ="true"
               Guest_ShowTagSelector  ="true"
               Guest_EnableStripScriptTags  ="false" 
               Guest_EnableContextMenu    ="true"  
     

    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

  •  11-09-2009, 12:14 PM 56989 in reply to 56984

    Re: Custom toolbars in DotNetNuke

    Thanks for the reply-
    I suppose I'm not being clear. Your instructions clearly indicate how to edit the web.config.
    What I'm wondering is if I can PROGRAMMATICALLY deliver different toolbars based on business rules that I set up in code so that different users see different toolbars - but NOT on the basis of DNN Roles.
    ie, I want to change the Rich Text Editor toolbars from my PROGRAMMING - not deliver a canned set of toolbars based on Role.
     
    Not sure if I'm clear here... I would like Joe and Sally to see the same page - both in the same DNN role - but see different toolbars based on business rules that I set up in code. Is this possible?
     
    Thanks in advance-
    SM
  •  11-09-2009, 3:56 PM 56992 in reply to 56989

    Re: Custom toolbars in DotNetNuke

    >>Not sure if I'm clear here... I would like Joe and Sally to see the same page - both in the same DNN role - but see different toolbars based on business rules that I set up in code. Is this possible?
     
    Yes, it is possible. We have an online demo: Programmatic Security
     
    For DNN, you need to modify the provider Providers\HtmlEditorProviders\CEHtmlEditorProvider\CEHtmlEditorProvider.vb.
     
    To modify the DNN provider, you need to understand asp.net and VB.net.

    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