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...Getting StartedGetting StartedCopying a page and it's modulesCopying a page and it's modules
Previous
 
Next
New Post
10/22/2012 3:35 PM
 

I have no significant experience (well, none at all actually!) of using the DotNetNuke API but it looks like it could save my bacon, so would appreciate some pointers. I have raised this overall issue in the Administration forum but I am now thinking that using the API could make this a lot easier on me.

I need to copy around 200 pages from a production PROFESSIONAL server to a development (will become production) COMMUNITY EDITION server. I won't bore you with the details but Export/Import is cumbersome, to say the least. However, I have full access to the SQL databases on each one and have a plan.

The pages in question are all of the same layout. They use about 4 custom modules, which are mostly data-driven based on their tags (taxonomy). One of the modules, however, is a simple HTML module with the main content of the page.

My new plan is as follows:

  • Export/Import one of the pages to the new server. That acts as my "template"
  • Write code to create the other 200-odd pages by copying the template page (I believe I use ModuleController for this)
  • Update the appropriate table in SQL to import the HTML-based content to each of the pages, for the single HTML module
  • The custom modules on the page should work as-is, since they will pick up the tags for each page (which I will import somehow)

I started tinkering with this yesterday and successfully created a new page. However, the content sucked into the new page only appears to include the HTML module - the layout doesn't seem to include the custom modules from the source page.

Before I delve in further here, is the copy method supposed to import modules too (from the source page to the target page)?

I don't have immediate access to my code right now but wanted to validate if I am on the right path.

Thanks.

Mark

 
New Post
10/23/2012 3:50 AM
 
AFAIK main difference between database of CE and PE is use of HTML table.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/23/2012 11:31 AM
 
Sebastian Leupold wrote:
AFAIK main difference between database of CE and PE is use of HTML table.

Thanks Sebastian. At this point (after quite some time investigating PE -> CE) I've decided to not try to figure out the differences. There are also significant differences between how permissions are handled. All these things are complications that are risky for me to take on and understand (it's like reverse-engineering DNN). So, rather than that I've decided to go with a clean installation of CE and to use public/standard API calls to import my data.

I have made some progress. Specifically, I can now copy "Page A" to create "Page B". They share the same layout (skin) and content. My next step is to figure out how to identify the primary HTML module on the page and to inject new content into that. When I look at GetTabModules I see 19 modules. But I am not finding it obvious how to identify the module I need to update.

Is there some way to uniquely identify each module from the admin UI so that I can then reference that programmatically? Also, once I know which module I need I then need to find a way to update it's HTML content.

Thanks again.

Mark

 
New Post
10/24/2012 10:55 AM
 
I have been working on this some more and have made some progress. Let me refine the request a little more. I need to do the following:

. Create a new copy of the "template" page (this is done)
. Identify two specific HTML modules on the page (I have two HTML modules in the ContentPane which need updating)
. Update the HTML content for the two modules

The 2nd and 3rd steps are where I need some guidance and any help would be appreciated. How do I identify these module son the newly created page and how do I update their contents?

Thanks.

Mark
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCopying a page and it's modulesCopying a page and it's modules


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