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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom Module DevelopmentCustom Module Development
Previous
 
Next
New Post
9/23/2006 1:41 PM
 

Hi, I am struggling with a very simple problem.

I have created a very simple module that displays records (consisting of a title and a description) from a table I have created.

It all works fine, I can add view, add, edit and delete records.

What I want to do is:

1) Define one view that shows the records ordered by Title

2) Define another view that shows the records ordered by Description

In other words when the user adds my new module they see two views pointing to the same modules data.  So they can go into either view and add new records, and the views show the same data, just ordered differently.

In my dnn file I have a single <modules> node with a single child <module> node, and the <module> node has the following child <controls> nodes :

<control> of type View no key                     ----> Title Ordered view
<control> of type View and key = View_2      -----> Description Ordered view
<control> of type Edit and key = Edit
<control> of type Edit and key = Settings

The problem is that the "<control> of type view and key = View_2" is not displayed??? Anybody know what the problem is?  Or can you point me to any resources that show how to display the same data in different ways in the same module.

Thanks,

CSharp.Joe

 
New Post
9/25/2006 1:37 PM
 
Your control type should still be View.  Each module definition can not, however, have more than one View control.  To get around this, all you need to do is add a second definition to your module.  In the second definition, select the file you want and set the key type to View.  You will notice the Definitions dropdown now has two items listed.  When you drop your module on a page, it will look like you just dropped two modules on the page.  You will get one for each definition.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom Module DevelopmentCustom Module Development


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