Products

Solutions

Resources

Partners

Community

About

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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Module moves to default page after updating any settingModule moves to default page after updating any setting
Previous
 
Next
New Post
12/17/2012 5:18 PM
 

I'm new to DNN and not sure if this is the right forum for this question, so please redirect me if it's not.

I've developed a custom module, packaged it, and installed it in an instance of a DNN website.  I then added the module to a page and everything seemed to work well, except the module is moved to the default page upon updating settings.  I then have to move the module back to the page I originally add it to.  Still, any further updates cause the page to move.

I've made sure that the Settings control I created catches any exceptions and passes them to the ProcessModuleLoadException method.  Still, there are no exception or any indication of what's causing this to happen.  Any ideas?

 
New Post
12/18/2012 3:45 AM
 
please post your method for storing (updating) your module settings. Did you compare it with same method in source code of another module, e.g. HTML module (from DNN source package)?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/18/2012 10:21 AM
 

I haven't compared my code to the source code of another module, but I did adapt my code based on a sample module.  I'll try comparing to another module

In the meantime, here this is the code within the UpdateSettings method (overrides method on ModuleSettingsBase).  Does anything stand out as a problem?

            Try
                Dim objModules As New Entities.Modules.ModuleController
                Dim adminCtrl As MyLib.Controls.AdminSetupControl = CType(AdminSetupControl1, MyLib.Controls.AdminSetupControl)
                objModules.UpdateTabModuleSetting(TabModuleId, "WCFServiceUrl", adminCtrl.WCFServiceUrl)
            Catch exc As Exception           'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try

 
New Post
12/18/2012 2:10 PM
 

I've compared my code with that of the DotNetNuke.Modules.Html.Settings class, but didn't find anything that indicated a significant difference.  Instead of getting/setting TabModuleSettings, the Settings class gets/sets ModuleSettings.  For my purposes, I need the settings to be unique amongst separate instances of my module.  Still, I altered my code to use ModuleSettings instead to see if I got different results; but the problem still existed.

Any other ideas?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Module moves to default page after updating any settingModule moves to default page after updating any setting


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