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...Building ExtensionsBuilding ExtensionsModulesModulesMultiple modules or single module with multiple parts ....Multiple modules or single module with multiple parts ....
Previous
 
Next
New Post
10/1/2010 7:16 AM
 
Hi all,
I'm having a bit of a mental block about how to logically arrange my module(s)
I'm ading several bits of functionality:
1. Add and edit records using several screens, off one main menu option
2. View several graphs of data each off their own main menu option

Both bits of functionality are related in that they use the same custom tables/data/data access classes.

I've done (1) and am happy jumping between a couple of controls/screens to do this.
However now I want to add various graphs showing views of this data, and I'm unsure how to structure this.
The graphs need to be different pages off the main menu. So I'm thinking I need a new module for each of these graphs? Since I cant exactly put the Add/Edit module I've created on these other pages, and somehow not show the add/edit functionality but show a graph instead?

I've noticed that if I go to Edit Extension on DNN5 Host menu, I can create multiple Module Definitions (each with their own controls). Is this the kind of thing I'm looking for?

If I need to create several modules then how do I structure this in the DesktopModules folder? Is it possible (or advisable) to do something like
/DesktopModules/Rob/AddEdit
/DesktopModules/Rob/Graph1
/DesktopModules/Rob/Graph2

and if I do this, where should I put the SQLDataProvider, off the root 'Rob' folder or off the 'main' "AddEdit" module?

Any suggestions as to the best logical structure to do this sort of thing, and if I can somehow put all this in one module (if thats a good thing to do) appreciated ....
Many thanks
Rob
 
New Post
10/11/2010 9:47 AM
 
I'm wondering this exact same thing, with similar content.  I have several graphs I wrote for an application that I'm trying to import into DotNetNuke 05.05.01.  Each graph is used on a different page.

Is there an established mechanism/best practice for showing related views on multiple pages?
 
New Post
10/11/2010 1:15 PM
 
Hi Gabel,
I never got a reply but in the end came up with a solution.
basically you can have several module definitions in your module.
Either do this by adding several
<moduleDefinition>
sections in your .dnn file, which you can do either manually or by going Host menu, module definitions, edit module. You can see an example of this in the Users and roles module. let me know if u need more help.
Rob
 
New Post
10/11/2010 1:23 PM
 
Thanks Rob, I'll check that out!
 
New Post
10/11/2010 4:04 PM
 
....and the bit I forgot to mention .... that when you add your module to the screen, you get all the bits, and you just delete the bit you dont want. 
So with mine, I have the 'Add data' module with 2 controls, and then 4 graph modules with one control each.
Each time I add the module to a page, I get all 5 and I delete the 4 I don't want. Dont know if this is the best way to do it and I'm a DNN Newbie myself but it works and as i said seems to have been done a similar way with the users and roles module.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesMultiple modules or single module with multiple parts ....Multiple modules or single module with multiple parts ....


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