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...Getting StartedGetting StartedModule SETTINGS control not being shownModule SETTINGS control not being shown
Previous
 
Next
New Post
5/25/2010 8:24 AM
 
Hi there

I have a DNN 5.02 portal to which I have added a simple image rotator ASCX control as a module. I didn't create a manifest manually, but allowed DNN to create all the necessaries using the Create New Module option in the Module Definitions page. All was so far good, but I have hit a problem now that I am trying to add a Settings control to the module. The custom settings I have coded into a Settings.ascx control are not shown at the bottom of the default Settings page when I choose the Settings menu option for the module instance. I think I have done everything that I should:

1. Created a Settings.ascx markup file, including Label controls and checkbox controls etc.
2. Created the associated code behind inheriting from ModuleSettingsBase.
3. Created a resource file for Localization, which I believe is natively supported by ModuleSettingsBase.
4. Added the Settings.ascx control as a module definition to update the module configuration on the admin portal, and set the module type as Admin (also I tried Edit but neither makes a difference)

But the custom settings in my Settings control are not displayed when I view the module settings, even if I remove and add the module to the page. It's as if the Settings.ascx control is not recognized. There are no errors generated in the admin Event Viewer. Have I missed something obvious out, and if not, where might be the most likely place to start troubleshooting, as I am at a loss to know what to do now!?

Thanks very much for any advice!

 
New Post
5/25/2010 10:12 AM
 
Regarding #4: Make sure that you added settings.ascx as an additional module control to the same module definition as your view and edit controls. Do not add a new module definition.

Also, make sure that you have given the settings.ascx control a Control Key of "settings" when you registered it.

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
5/25/2010 11:25 AM
 
Thanks for that,

I had both of those wrong, so now it is just about sorted - and I set it to Admin view t ype aswell. The only problem I have with it is that it isn't finding the localized text resources included with the module. Am I right in assuming that controls inheriting from ModuleSettingsBase should be able to support use of a localization resx file implicitly without any additional coding. If so, then it is probably a separate problem for another thread, but it would be useful to confirm this.

Many regards

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedModule SETTINGS control not being shownModule SETTINGS control not being shown


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