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?