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...Getting StartedGetting Startedhow to create multiple modules in one folderhow to create multiple modules in one folder
Previous
 
Next
New Post
12/8/2013 11:49 PM
 

Hi,

In DNN 7, I create one module that have multiple forms as follow:

\DesktopModules\News\NewsApproveEdit.ascx

\DesktopModules\News\ NewsApproveList.ascx

\DesktopModules\News\ NewsCreate.ascx

\DesktopModules\News\ NewsEdit.ascx

\DesktopModules\News\ NewsList.ascx

Then, I login portal by host account and I access Host\Extensions\Create New Module . But I only create one module from any form in module folder.

Now, I want to create multiple modules from multiple forms in module folder.

Please help me,

Thank you

 

 
New Post
12/9/2013 8:56 AM
 
you do this by creating multiple modulecontrols -the wiki has lots of guidance on this (e.g http://www.dnnsoftware.com/wiki/page/... ). As an example you can go to host->extensions, scroll down to the html module and edit it, and then click create package. After a few screens you'll see it's dnn manifest defined which has 3 controls. If you're talking about one package with multiple separate modules you do this by creating multiple module definitions (the create new module only creates 1). For an example go to host->extensions and edit the users and roles module - you'll see it has 3 module definitions each with a number of controls (10 in total) defined under them. If you click "create package" and step through it you'll see the dnn manifest file that would be generated and that will be a good example (note: installation generates multiple module entries , this is something we will look to fix in the future - http://www.dnnsoftware.com/voice/cid/... )

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/9/2013 5:46 PM
 
As an aside - I would suggest that this sort of module structure is maybe not the ideal way to go - based on the names of the modules you have listed.

Instead of having separate Modules for each action - you sometimes may be better off using a template based single module - as the master module.
And have that master module load the appropriate layout based on actions on the page.

The reason i say this - is that looking at your list of modules - I would assume that only one of these is going to be active at any one time.
So you are going to need a mechanism in each module to turn it on and off when not needed anyway.

Westa
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting Startedhow to create multiple modules in one folderhow to create multiple modules in one folder


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