Hi.
I am trying to add data to a HTML/Text controller programaticly. I have looked inside DesktopModules/HTML/EditHtml.ascx.vb, and here is the code:
DotNetNuke.Modules.HTML.HtmlTextController objHTML = new DotNetNuke.Modules.HTML.HtmlTextController();
DotNetNuke.Modules.HTML.HtmlTextInfo objText = new DotNetNuke.Modules.HTML.HtmlTextInfo();
// set content values (new module ID, encoded HTML, etc.)
objText.ModuleId = intModID;
objText.DeskTopHTML = Server.HtmlEncode("<h1>Hello World!</h1><p>Successful new module.</p>");
//objText.DesktopSummary = txtDesktopSummary.Text;
objText.CreatedByUser = Me.UserId;
// save the content
objHTML.AddHtmlText(objText);
I have added the DotNetNuke.dll to my project, and I cannot find the DotNetNuke.Modules.Html.dll, I have heard that it is incluced into the source now.
But when I try this, the HTML part of the namespace is not recognized. And the only namspace I can find is the DotNetNuke.Modules.HTMLEditorProvider, but I haven't been able to find any examples using this class, the HtmlEditorProvider.
So can anyone tell me how to accomplish something similar to the code above?
Best regards
Vidar