سؤال

So, I've developed a great module and integrated all over the installation on multiple pages. The next day comes the customer and they want another view added to the module. So I build another module definition. Problem is, now I have to install the whole module again and remove all other (a lot right now) module definitions with the exception of the newest.

Is there a way to work around this? I even prefer to do it by programming, code-wise adding a new module definition to the page.

EDIT:

For example I've got a page with my module installed. The page will then have the following module definitions:

  • ModuleDefinitionA
  • ModuleDefinitionB
  • ModuleDefinitionC

Now I update my module by adding another module definition and I have to install it on the page again:

  • ModuleDefinitionA <-- from previous install
  • ModuleDefinitionB <-- from previous install
  • ModuleDefinitionC <-- from previous install
  • ModuleDefinitionA <-- from new install
  • ModuleDefinitionB <-- from new install
  • ModuleDefinitionC <-- from new install
  • ModuleDefinitionD <-- new definition from new install

How can I add only ModuleDefinitionD without adding all the other duplicate module definitions?

(not a novice at DNN module development)

هل كانت مفيدة؟

المحلول

I don't think what you are asking is possible. Remember DNN modules are DotNet code which is compiled code, so any time a new View(ascx control) is added or a change made to the project's code, the module has to be recompiled with Visual Studio(or similar tools), and then reinstalled. Increment the module version number and DNN will notice it's an upgrade and only run sql scripts that match the module version number.

Plus, when you update a module, every running instance of the module is updated, so you don't have to remove and then re-add the module back to the pages.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top