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...Building ExtensionsBuilding ExtensionsModulesModulesCopying a Tab and ModulesCopying a Tab and Modules
Previous
 
Next
New Post
3/1/2010 7:57 AM
 

Hi,

I'm trying to create a large number of pages (tabs) on my site which are almost identical apart from a few keywords so I thought I'd write a C# module to automate the task using a page to base my new pages from, with tokens to differentiate the pages.

I've used the TabController's CopyTab() method and there's a flag controlling the instantiation of the module - new or referenced - and this obviously controls whether or not the modules, copied to the new page, are new instances or referenced ones. However, there seems to be no provision for the case where I would wish to copy a module along with its contents. Using DNN's GUI, when copying a page, it's possible to select the individual modules and copy them in three ways - new, copy or reference. I'm guessing then, that as CopyTab() method can't be used as I require, I'll have to create my new page, and individual copy all the modules from my template page.

The last complication is that the most obvious method for copying modules, CopyModule(), available on the ModuleController, is now deprecated and I can't find a replacement for it.

Any ideas on how to copy a tab along with copies (including content) of the modules (text/html) it contains?

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCopying a Tab and ModulesCopying a Tab and 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