Hi is it possible to add a module to a page via sql. for e.g. I need to replace a deprecated module that has many hundreds of records on 300 + pages over several portals with a replacement module.
My thinking is!
I have successfully tested step 1 to return IDs, I have manually added a replacement module to a single test page and successfully migrated data across as in step 3. The hard bit, of course, is whether I can add modules this way.
Hope this makes some sense
Stuart,
I did this once with a lot of testing, trial & error, etc. etc. - but it worked finally. I converted Nuntio Content to HTML modules this way. If you want to look at the scripts, you can find them in a thread in the German Usergroup forum, in the third post on page 2: http://www.dnn-usergroup..../topic/Default.aspx.
I did not add the new modules to the pages (and I did not delete them after the process), but replaced the ModuleDefId in the Modules table. Therefore I did not touch the TabModules table.
Note:
Happy DNNing! Michael
Michael TobischDNN★MVP
Cheers Michael, I will look at your scripts and will definitely be testing on our dev server first.
Stuart
Posted By Stuart on 27 Feb 2020 03:37 AM Cheers Michael, I will look at your scripts and will definitely be testing on our dev server first. Stuart
Could post your solution in here please? That could be helpful for people that will try the same in the future :-)
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.