Welcome to the Community Exchange

Welcome to the Community Exchange, a place where community members can exchange questions and answers related to DotNetNuke. If you would like more info about the Community Exchange, please visit this page in our Wiki. 

How to create a new page programmatically??

http://www.dotnetnuke.com/Resources/Wiki/Page/Create-a-new-page-programmatically.aspx

http://johnnblade.wordpress.com/

I read these two articles. I'm trying to import the data from my existing database and create a new page with the contents from my database. There're a lot of information so I don't want to just copy and paste. I have written all the code and it should work. But since it's a one time thing. Where should these code live/locate in the DotNetNuke's project and where should I run and compile it. I'm very new and have a lot to learn so please help!


asked 7/18/2012
charliz.burks2
charliz.burks

1 Answer

the code simply needs to be within the DotNetNuke site, so whatever way you can do so is fine - however the easiest way is to create a module (or if you know razor use the razor host module) or if it's dnn 6.2.0 or higher use the service framework - you can read more on module development at http://www.dotnetnuke.com/Resources/Wiki/loc/allpages/Cat/Development.aspx
answered 7/19/2012 cathal connolly 1210
cathal connolly
  • What do you mean by service framework?
    At first I created a module via DNN template and my code would live there. I get it to the point where the page is created but there's no content in the page. So, do I need to add a 'new' module to the page...
    Sorry, I've been trying to read a lot of articles and wiki but it's still very confusing to me - charliz.burks 7/20/2012

Your Answer

In order to provide an answer to this question, you must Login

I am flagging this question because...




10 inform moderator flags remaining

I am deleting this question because...




I am flagging this answer because...




10 inform moderator flags remaining

Flagging a Post

You have already flagged this post. Clicking "Remove Flag" below will remove your flag, thus reducing the count by one as well.

I am deleting this answer because...




DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.