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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Importing pages through scriptingImporting pages through scripting
Previous
 
Next
New Post
10/19/2012 7:11 PM
 

Is there any way to do this? I have a couple of hundred page that I need to import from one server to another (including their taxonomy tags). How would I go about scripting this?

Thanks.

Mark

 
New Post
10/20/2012 2:31 AM
 
If the data is in a structured format, you could load it into a temporary table and then write a sql script that would:

1.) Generate the pages
2.) Associate taxonomy
3.) Add text/html to each page
4.) Populate text/html for each page with your existing data

Scott McCulloch
Developer, F5 Networks
Owner, Ventrian DotNetNuke Modules
 
New Post
10/20/2012 2:47 PM
 
Scott McCulloch wrote:
If the data is in a structured format, you could load it into a temporary table and then write a sql script that would:

1.) Generate the pages
2.) Associate taxonomy
3.) Add text/html to each page
4.) Populate text/html for each page with your existing data

Thank you, Scott. I am not sure I did a good job of phrasing my question. The data is "structured" in the sense that these are pages in the source database and, as such, presumably all their elements are in the Tabs and related table. My problem is that I don't really understand a) the DNN schema or b) what scripting interfaces exist. Let me take an example...

Let's say I have a page on my source database that uses a specific module. That page is represented in the Tabs table and then there are various other tables that describe the module and where it appears on the page. If I just copy across the contents of the Tabs table then the module ID's referenced in that table won't be the same as those in the target database.

What I really need is some "import page" (and it's related content)-type API, so that this is all abstracted for me. Is that available?

I have also looked at the schema associated with taxonomy. I see the Taxonomy_Terms and Taxonomy_Vocabularies tables, for example. But, as yet, I can't see where a particular term is associated with a page.

In short, I'd love to find some "import page" API that does all this for me.

If I don't have that option then I am back to square one. For example, when you say "Generate the pages" do you mean manually (remember, I have a couple hundred)? Is there some API call that will at least create the basic page? Same for things like "Add text/html to each page". I am not sure how to go about this from a scripting perspective.

Thanks.

Mark

 

 
New Post
10/20/2012 5:13 PM
 
Oh, I didn't realise you were going from DNN to DNN.

Have you tried the import/export option for portals? Providing the modules you are using support iSearchable, it should work with the data (I've never tested the taxonomy part though).

http://www.ventrian.com/blog/exportin...>http://www.ventrian.com/blog/exportin...

Also, when I was talking about the above script, it was all an automatic script.

Scott McCulloch
Developer, F5 Networks
Owner, Ventrian DotNetNuke Modules
 
New Post
10/21/2012 1:53 PM
 
Scott McCulloch wrote:
Oh, I didn't realise you were going from DNN to DNN.

Have you tried the import/export option for portals? Providing the modules you are using support iSearchable, it should work with the data (I've never tested the taxonomy part though).

http://www.ventrian.com/blog/exportin...>http://www.ventrian.com/blog/exportin...

Also, when I was talking about the above script, it was all an automatic script.

Thanks Scott. So, here's my basic problem. I am downgrading from DNN Professional to Community Edition. I have a ton of data (all the pages I mentioned, for example) in my Professional database and I need to get that into Community. So, I can't import a portal since that would assume Professional to Professional.

So, what I am looking for is some sort of mechanism to bring in the page data through script. I can export a page and (with a minor amount of editing of the resultant template to remove permissions that don't apply to CE) can then import through the UI. That obviously sets up I need across the Tabs and related tables. An import API would do just that.

Another way to tackle this is if I knew enough about the schema to import content directly (SQL -> SQL). But that assumes I understand how a page is represented across all the various tables (Tabs and its relationship to modules, content, etc). That seems like a more cumbersome approach.

So, my current thinking is that if I can export the pages through an API, then import through an API then I abstract all the schema implications. But I don't know where or how I script the export and import.

Thoughts?

Thanks.

Mark

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Importing pages through scriptingImporting pages through scripting


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