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 ExtensionsModulesModulesNew to Dnn and need advice on an approach to module developmentNew to Dnn and need advice on an approach to module development
Previous
 
Next
New Post
10/17/2012 3:15 PM
 

As I am new to DNN and Web Development in general, please allow to apologize up front for any questions or statements that seem disjointed/uninformed/confusing.

I am beginning to build a module, and have questions regarding the approach to use for the UI.  As I see it, my module, which deals with creating, maintaining, and reporting against organizational units (not quite a standard orgchart), has two potential approaches for handling the UI

1.       My view.ascx is broken into 2 divs: one containing buttons marked to carry out tasks (new unit, report on unit, reassign hierarchy, that sort of thing), the other containing a series of container controls that have collections of controls appropriate to each task.  On button-click, the visible container would be made invisible, and the appropriate container made visible

2.       My view.ascx contains buttons (really just <a class=’dnnPrimaryAction’> type links which look like buttons…) which would call out other ascx controls (configured to be used as modal popups) where the appropriate work would be done.  As an example, think about the Edit Profile button on the user profile page, or the Admin button in the Forum module.  When clicked, it redirects to another page (although it’s really another ascx within the same module, isn’t it?), though in my case the page would just be a modal popup. 

I am under the [perhaps mistaken] impression that 2 would have a cleaner look and feel, but that 1 might be easier to accomplish.

I had thought that I could link the “other page” ascx as the link target, but I realized right off that wouldn’t work.  It looks like you have to contruct a url containing the TabID, among other things, and I’m not really sure how to determine what goes into that URL, and what the ultimate target should actually be.  I see a lot of things pointing to Default.aspx, but is that always going to be the case? 

So really, which of the two approaches is sensible (for starters), and are there any articles in the wiki that would help accomplish either task?  My first couple of searches didn’t turn anything up, but I suspect this is more a problem with my search terms more than anything else.

Any help would be greatly appreciated.

 
New Post
10/19/2012 4:56 PM
 
The actual implementation really depends on what you want your users to see. However, using modal dialogs might be the easiest for you from the beginning. The fastest way here would be to add the controls to your manifest (Each using a unique ControlKey). For your action buttons make them
myLink.NavigateUrl = ModuleContext.EditUrl("MyAction");

Where myLink is the id of your hyperlink and "MyAction" is the ControlKey of the .ascx to show. Make sure that ALL controls inherit from the PortalModuleBase class to be able to get access to ModuleContext.

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesNew to Dnn and need advice on an approach to module developmentNew to Dnn and need advice on an approach to 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