Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Retrieving HTML module content by module IdRetrieving HTML module content by module Id
Previous
 
Next
New Post
1/3/2011 2:37 PM
 
We have some content that is currently being displayed on a DotNetNuke website that we need to also display on a non DotNetNuke website. I have created a web service in the DotNetNuke site that has a method that takes a module id as a parameter and then needs to return the HTML content for that module. 

The problem I am having is I am unable find a way in the DotNetNuke API to retrieve this information.  I have looked into the ModuleController() class, but all I can retrieve is the content "Enter Title".  I know that a method has to exist in the API for this, but I have searched through these forums and on Google with no luck.

Thanks!
 
New Post
1/3/2011 5:58 PM
 
there is no generic return module content method that output's module content, if you need to pull the module content you'll need to call the relevent module API e.g. ' get HtmlText object
Dim objHTML As New HtmlTextController
Dim objText As HtmlTextInfo = objHTML.GetHtmlText(ModuleId)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/4/2011 9:49 AM
 
Thanks, that was exactly what I was looking for!  Also found this post that details how to use the HTMLTextController to get what I want.

http://www.dotnetnuke.com/tabid/795/f...
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Retrieving HTML module content by module IdRetrieving HTML module content by module Id


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out