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...SQL and SQL Ser...SQL and SQL Ser...DotNetNuke Tabs synchronization in 8 simple stepsDotNetNuke Tabs synchronization in 8 simple steps
Previous
 
Next
New Post
12/28/2010 4:04 PM
 
Problem: I have a DotNetNuke (DNN) development site that is a copy of a live site. It has like 5,000 pages in it. Over the last three months, a client has gone through and made major navigation changes to the site. I really don’t want to go through the site page by page and recreate all the navigation changes that were made, so I wrote this script. You should be able to basically copy over all the navigation changes in about 3 minutes with these simple steps. The one part I left out is creating new pages because, I only had to recreate 4 of them.

Step 0.

Back up your databases. ALWAYS do that first.

Step 1.

In development: execute this SQL statement:

SELECT     ‘update tabs set tabOrder = ”’ + cast(TabOrder as varchar(50)) + ”’, tabName = ”’ + cast(replace(TabName,””,”””) as varchar(50)) + ”’, IsVisible = ”’ + cast(IsVisible as varchar(50)) + ”’, ParentId = ”’ + cast(ParentId as varchar(50)) + ”’, [Level] = ”’ + cast([Level] as varchar(50)) + ”’, Title = ”’ + cast(replace(Title,””,”””) as varchar(500)) + ”’, Description = ”’ + cast(replace(Description,””,”””) as varchar(500)) + ”’, KeyWords = ”’ + cast(replace(KeyWords,””,”””) as varchar(500)) + ”’, TabPath = ”’ + cast(TabPath as varchar(500)) + ”’ Where tabID = ”’ + cast(TabID as varchar(50)) + ”’;’ as expr1 FROM         Tabs
ORDER BY TabID

NOTE: This will create a bunch of update statements for you.

Step 2: Copy the output.

Step 3: Open a new Query Window in SQL Server Management Studio (make sure the database selected is the production database)

Step 4: Paste the output into this window. (you may have to go through and delete any NULL lines)

Step 5: Tweak anything at this point. When you are ready, execute the statements. (FYI- they will all execute because of the ; at the end of each statement)

Step 6. Login to your DNN portal as host.

Step 7. Go to: HOST -> Host Settings and scroll to the bottom.

Step 8. Click restart system. Give it a minute or two, then look at the nav.



Here is the full blog post on how I did that:
http://thoughtsought.wordpress.com/20...
 
New Post
12/29/2010 3:39 AM
 
Thanks Stephen for sharing your findings, just a few annotations:
  • Your method will work only with a clone database of the source DNN installation where pages have the same TabId
  • The script will work only for English language, since you are converting to varchar instead of nVarChar.
  • The script neither adds nor deletes pages. all parent parent pages need to exist
  • The script does not cover permissions nor any content of the pages
  • You need to modify the script, if your DNN is using an objectQualifier

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...DotNetNuke Tabs synchronization in 8 simple stepsDotNetNuke Tabs synchronization in 8 simple steps


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