DNN Provider - Root Image Directory

Last post 02-01-2005, 6:57 PM by Bunce. 4 replies.
Sort Posts: Previous Next
  •  02-01-2005, 12:18 AM 3827

    DNN Provider - Root Image Directory

    The RootImageDirectory property doesn't seem to pick up the correct portal root.
     
    It seems to default to the Internet Web Root -> Error message displays:

    Could not find a part of the path c:\inetpub\wwwroot\Portals\0\

    and my DNN Virtual Directory is C:\VSProjects\...  etc.

    So I manually set this the Initialize() event (same as used in EditorWysiwygModeCss property) to
     
    RootImageDirectory = PortalSettings.HomeDirectory
     
    and it worked OK. Not sure if this should be changed??
     
    Also, not sure if its possible, but any way to inherit or integrate the file permissions of the Image Gallery to that of DotNetNuke?  Probably a big ask but thought I might throw it out there...
     
    Cheers,
    Andrew
  •  02-01-2005, 10:00 AM 3843 in reply to 3827

    Re: DNN Provider - Root Image Directory

    Andrew,
     
    You may need to download the latest CuteEditor for DotNetNuke provider.

    In the current version, we get the upload folder form the  _portalSettings directly.
     

    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-01-2005, 6:00 PM 3856 in reply to 3827

    Re: DNN Provider - Root Image Directory

    Thanks - Yep that looks a little different.  There were also multiple stylesheet paths specified for the EditorWysiwygModeCss property in the one I have.

    We're still only trialling so I had only downloaded the Trial Version for 'NukeEdit', so maybe this needs to be updated.

    Is there anyway to get hold of the updated provider that you quoted?

    Cheers,
    A
  •  02-01-2005, 6:37 PM 3858 in reply to 3856

    Re: DNN Provider - Root Image Directory

    Andrew,
     
    The nukeedit.zip has been updated.
     
    Which version of dotnetnuke are you using?

    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-01-2005, 6:57 PM 3860 in reply to 3827

    Re: DNN Provider - Root Image Directory

    DNN 3.09

    There were two provider files in the download:
    \DotNetNuke_3.0\Providers\CEHtmlEditorProvider.vb
    \DotNetNuke_3.0\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CEHtmlEditorProvider.vb

    The former seemed incomplete, so I used the latter, which was in the correct location anyway.

    It contained the following for the initialise event:

     Public Overrides Sub Initialize()

                cntlCE = New CuteEditor.Editor

                Dim s1, s2, s3, s4 As String

                s1 = Common.Globals.HostPath & "default.css"
                s2 = PortalSettings.ActiveTab.SkinPath & "skin.css"
                s3 = (PortalSettings.ActiveTab.SkinSrc).Substring(0, PortalSettings.ActiveTab.SkinSrc.LastIndexOf("/")) & "/skin.css"
                s4 = PortalSettings.HomeDirectory & "portal.css"

                'initialize the control
                cntlCE.EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4
                cntlCE.FilesPath = DotNetNuke.Common.Globals.ResolveUrl("~/Providers/HtmlEditorProviders/CEHtmlEditorProvider/CuteSoft_Client/CuteEditor/")
                cntlCE.SetSecurityImageGallaryPath(RootImageDirectory)
                cntlCE.SetSecurityFilesGallaryPath(RootImageDirectory)
                cntlCE.SetSecurityMediaGalleryPath(RootImageDirectory)
                cntlCE.SetSecurityFlashGalleryPath(RootImageDirectory)
                cntlCE.DisableClassList = "ControlPanel,FileManager,FileManager_Header,Wizard,WizardBody,WizardHelpText,ModuleTitle_MenuArrow,ModuleTitle_RootMenuArrow,MainMenu_MenuArrow,MainMenu_RootMenuArrow,WizardHelp"
                'disable the save button
                cntlCE.DisableItemList = "Save"

            End Sub



    Cheers,
    A

    PS - What button do you use to get your code in the textbox?
View as RSS news feed in XML