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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogImporting Posts From Old Blog Into DNN Blog TablesImporting Posts From Old Blog Into DNN Blog Tables
Previous
 
Next
New Post
2/15/2011 12:44 PM
 
I've done extensive searches and cannot seem to find the answer to this question, but I am a DNN noob, so feel free to school me if this is a common question I somehow missed.

I have a customized blog software I was using and now want to migrate to DNN blog as I am planning to migrate the rest of my site to DNN.  From what I gather there is no official way to import posts from 3rd party blogs.  My software is custom, so it wouldn't match any of the common formats anyway (wordpress, etc.). 

The DNN blog table schema seems pretty straight forward -- Blog_Entries for posts, Blog_Comments for comments, and Blog_Tags for tags.  The custom blog I used before has a very simple table schema as well and most fields are a 1:1 match. 

So my question: Is it kosher for me to just directly insert into the SQL tables or would I screw up some dependencies?  If I can't directly insert into those tables, is there an API I can use to mirgate posts? 


 
New Post
2/15/2011 2:42 PM
 
Based on your explanation you have 2 ways doing this, none of which is a simple "click-and-you're-set":
  1. Manually enter everything using the UI
  2. Direct SQL, as you already figured out.
The only thing I would recommend is to create the Blog you want to import everything into first. This will give you the BlogId KEY that you will need to use to reference all the entries to, comments, etc.

Hope this helps.

Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
New Post
2/15/2011 2:53 PM
 
Thanks for the confirmation.  I definitely agree with setting up a blank blog site to begin with!  My main concern with the SQL technique was that there were other DNN tables that needed to be updated that weren't obvious to me at first glance.  As long as it's just the ones I identified, then I should be okay.  When I figure it out, I'll post some SQL to this thread, in case it helps somebody else with a similar custom solution down the road.
 
New Post
2/15/2011 3:46 PM
 
thx1200,

The only tables that you need to deal with are those that are prefixed with BLOG_, therefore, unless you touch any other tables during your exercise your DotNetNuke should be just fine.

Good luck!

Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogImporting Posts From Old Blog Into DNN Blog TablesImporting Posts From Old Blog Into DNN Blog Tables


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