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.0How do I link to a moduleHow do I link to a module's "Settings" page?
Previous
 
Next
New Post
12/18/2009 10:37 AM
 

I need to link to the Module's setting page. EditUrl("Settings") only links to the module's "Settings" control. I need the full settings link like when you press "Settings" from the action menu.

 Does DNN have a function that returns the Settings URL?

 

 
New Post
12/18/2009 3:10 PM
 

I'm not sure what you mean by "only links to the module's "Settings" control" as EditUrl("settings") will indeed when called from within your module code generate a link to the full settings "page" including both the custom settings fields you have defined in your module's settings control plus the permissions grid and other settings which are available for any module.

If your settings control is appearing alone and not being embedded within a module's standard setting's "page" it is most likely because your settings control does not inherit from DotNetNuke.Entities.Modules.ModuleSettingsBase class and does not implement the two methods LoadSettings and UpdateSettings.


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
12/18/2009 4:06 PM
 

Below is a barebones version of my Settings.ascx.vb file. The Settings.ascx consists of a single checkbox. The action menu "Settings" link works as expected but the EditURL("Settings") link placed in the module only shows the single checkbox without the module permissions and other module settings. This is on DNN version 4.9.

Imports DotNetNuke
Imports System.Web.UI
Namespace Steadfast.Modules.TestModule
    Partial Class Settings
        Inherits Entities.Modules.ModuleSettingsBase
        Public Overrides Sub LoadSettings()
                        CheckBox_Manage_Responses.Checked = CType(TabModuleSettings("manage_responses"), Boolean)
        End Sub
        Public Overrides Sub UpdateSettings()
                Dim objModules As New Entities.Modules.ModuleController
                objModules.UpdateTabModuleSetting(TabModuleId, "manage_responses", CheckBox_Manage_Responses.Checked.ToString)
                Entities.Modules.ModuleController.SynchronizeModule(Me.ModuleId)
        End Sub
    End Class
End Namespace



 
New Post
12/18/2009 7:35 PM
 

Your settings control code looks fine. As I couldn't recall having tried creating a direct link to the module settings "page" in the past - always relying on the action menu to access this - I tried a quick test and found that you are correct.

EditUrl("settings") creates a url that only displays the module's custom settings control without embedding it in the usual module settings. The url for the complete module settings "page" is a special case that does not follow the usual pattern for navigating to a module control. By looking at the url produced in the browser address bar following a click on the Settings item in a module's action menu, I came up with the following:

NavigateURL("Module", New String() {"ModuleId=" & ModuleId.ToString})

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
12/18/2009 7:53 PM
 

Perfect!  Thank you very much.


 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How do I link to a moduleHow do I link to a module's "Settings" page?


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