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.0Basic Question: How do I add custom parameter settings to my moduleBasic Question: How do I add custom parameter settings to my module
Previous
 
Next
New Post
9/16/2008 11:37 AM
 

This seems a basic thing. but I've never been able to find an simple sample of how to add a parameter to my module that can be set when I add the module from the control panel.

For example I want to be able to click on the settings icon on my module and see my custom parameter in the list of module settings available.

 
New Post
9/16/2008 3:53 PM
 

I just want to elaborate on my question.

first, I know can just create a settings.ascx control for my module and set it in the module definition. Then my settings control would save whatever parameters and settings to my database. But I guess what I want to know is does DNN have some kind of module property feature that I can add a custom property to and set it's value through the control panel without me having to add additional fields to my database or creating additional control pages. 

 
New Post
9/17/2008 9:16 AM
 

Other than the properties which all modules and module controls expose that can be set from default settings page of the module or from the Host-->Module Definitions pages, the answer is no.

Your best approach is to create a settings.ascx which will then be used to save any custom properties to the DNN core's ModuleSettings or TabModuleSettings table.

If my module has more than a few settings (perhaps 10), I usually define a configuration class which handles loading and saving of settings and exposing them as strongly typed properties. For modules with an even larger number of settings, I tend to bypass the DNN ModuleSettings or TabModuleSettings entirely in preference to storing them in a custom table. This makes the settings easier and more efficient to load/save as an entire database table row or as needed direcly within the module's stored proceedures.

 


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
9/17/2008 11:11 AM
 

Thanks that actually answered my question and pointed in the right direction.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Basic Question: How do I add custom parameter settings to my moduleBasic Question: How do I add custom parameter settings to my module


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