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...DNN Platform (o...DNN Platform (o...Creating Modules with multiple viewsCreating Modules with multiple views
Previous
 
Next
New Post
1/6/2009 3:36 PM
 

I've been tinkering with developing modules for DNN 5.0 with the starterkit.  I have a question for about creating multiple view controls.

After creating one ore more module views, how does one go about adding that specific view to the list of modules that can be added to a page?  I've tried to create new Module Definitions, but the only success I've had so far is creating a single menu entry that adds BOTH of my module definitions (ones without a "key" value) to the page. 

For example, lets say we have a genneric module that manages a simple list of data stored in one table.  One view would be responsible for creating a new entry using a simple form.  Another view I created prints all the items in a datagrid.  Is there a way to add both these views to the control panel at the top without creating two completly different modules?

 

Thanks for your help,

 

Oliver Kane

 
New Post
1/7/2009 11:29 AM
 

you meant, like this?

ID First Name Last Name
0

John

Smith
1 Mike Smith
2 Tony Smith
3 Kelly Smith
4 Oliver Kane
5 Wayne Smith
6 Beth Smith

NEW ENTRY

[TEXT BOX - FIRST NAME] [TEXT BOX - LAST NAME] [BUTTON - ADD]

 

If this is what you want to accomplish, all you have to do is put "New Entry" part including text boxes and the button on a Panel control. Set the he panel control "invisible" by default.  Then in the onLoad event, you just do "if this user is admin/host, the Panel control = visible".

Am I understanding you correctly?

 
New Post
1/8/2009 4:06 PM
 

I think he means something different. It sounds like he wants to have one actual module with multiple views that appear independently in the Module dropdown of Add New Module in the Control Panel.

The module would be GenericModule. In the dropdown, two things would appear: GenericModuleList and GenericModuleAddEntry. That way each part could be added individually to a page, instead of together as in the Blog Module.

 

 
New Post
1/8/2009 7:47 PM
 

The DotNetNuke Repository module does this to include a Repository Dashboard as a separately available module, but is installed in the same package.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Creating Modules with multiple viewsCreating Modules with multiple views


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