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 module wonNew module won't show view mode
Previous
 
Next
New Post
3/23/2010 8:54 AM
 

Hello,

I've created a custom module and it has an EditControl.ascx, Settings.ascx and ViewControl.ascx.  These (and other needed files) are located in DesktopModules --> ControlName and the DataProvider, ControlController, ControlInfo and SqlDataProvider files are under App_Code -->Control.

The control was created by using the DotNetNuke Dynamic Module template in Visual Studio. It installs fine, but if I do Create Module From: New iall it shows is the default template that says:

Congratulations

You have successfully created your module. You can edit the source of the module control by selecting the View Source Action from the Action Menu.

If I view the source, that's all there is.

If I do Create Module From: Control it shows some of the things I defined in the EditControl.ascx.resx and I can view the source for EditContrl.ascx, EditControl.ascx.vb and EditControl.ascx.resx. However, I have no way that I can see to get to the ViewControl.ascx which contains controls that need to be shown.

Finally, if I do Create Module From: Manifest and select the appropriate manifest file the page does a postback but nothing else appears to happen.

How do I get it to show the ViewControl.ascx or at least get it be able to switch to view mode?

Sorry but this is my first module, thanks for any help.

 
New Post
3/23/2010 9:26 AM
Accepted Answer 

Hi Jason,

I have written a tutorial series on module development. Obviously you have gotten a bit on the way, but I think it could help you with your problem.
You can find it here: http://www.sipidcode.com/post/DotNetN...

Hope it helps.
/Johan

 
New Post
3/23/2010 6:16 PM
 

When registering your controls in the module definition or when creating your .dnn manifest file, be sure that ViewControl.ascx has been given a blank ControlKey. The control with a blank ControlKey is considered to be the default view control which will show initially when viewing the page upon which it has been placed.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/24/2010 1:14 PM
 

Johan, thanks for pointing your posts out to me.  I had actually come across them in google and had them bookmarked but I had started on a different tutorial, so I was planning on checking yours out afterwards.

I'm glad I jumped straight to yours though :)  Great series for beginning developing modules in DNN 5.  In the end, I'm pretty sure the step you describe about adding the specific pages for the module after you install it was the part that caused my initial problem.  I had been following a tutorial for DNN 4 and that step wasn't mentioned in there.

The only problem I ran into your tutorial was that some of the control declarations in the designer pages (such as EditProducts.ascx.designer.cs) often reverted to the devault namespace System.Web.UI.WebControls.controlName and lost their DotNetNuke definition found in DotNetNuke.UI.UserControls.controlName.  I'm pretty sure this is because I opted to develop using the Visual Studio virtual server instead of installing IIS on my development box.

So again, thanks for the great series.  I notice in one of your blog posts you mention that you were planning on doing a series of these and you were starting with modules.  Is this still the plan?  If so, I was just curious if you were planning on doing some about skinning.

Thanks

 
New Post
3/24/2010 1:16 PM
 

William, thanks for the tip.  In the end I found out what my problem was but this is a good tip for me to keep in mind for future development problems that could possibly arise.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesNew module wonNew module won't show view mode


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