Last Activity: 2 years ago
Save / Restore Module with Settings + Content
Your idea has been submitted and is awaiting moderation.
Solution: DNN has internal methods for saving a complete page or even a complete website as a template, with all settings. But when exporting and importing module content, these methods are not used. Instead there is a special solution for this which only fetches the content and nothing else.
Attachment: I attached 3 changed files of the core which changes this behaviour to the standard DNN way and allows to export and import a module with all the settings. There are only minor changes in codebehind of export.ascx and import.ascx and 1 new method in ModuleController.cs. If an old template is selected for import, import goes the old way and a new template imports the whole thing with settings and permissions
Enhancements: I did not change the UI of import.ascx. Perhaps it would be a great enhancement to add some checkboxes like: Include Settings, Include Content, Include Permissions. If IncludeContent is checked by default and the others not this is the behaviour like before. You could easy add these values as parameters to the new Method in ModuleController and add some "if"-statements.
Jira ticket (+code proposal): https://dnntracker.atlassian.net/browse/DNN-26810
Commenting has been disabled because the Idea is not approved, or is locked, or is closed.