Register    Login
 
 
Knowledge baseDotNetNukeArchitectureModule Settings
 
 
Store module settings Minimize
Module Settings and Personalization: Easily Store Data For Your DotNetNuke® Module
Nearly half of your module development can be spent creating database objects (tables and stored procedures) and data access methods. You can leverage the DotNetNuke framework and reduce or eliminate this task
Print  
 
 
 
Module settings - background Minimize

Most of the time you need to set settings for your module. This can be done in several places.

ModuleSettings
These are settings that are set for all instances of a module

TabModuleSettings
These are settings for a single instance of a module

Settings hashtable
all settings are stored in a hashtable. This is the equal for ModuleSettings and TabModuleSettings

Print  
 
Module settings - read and write Minimize

Read settings in your asp page
Settings can be read and used by the following commands:

  • GetModuleSettings(ModuleId)
  • GetTabModuleSettings(TabModuleID)

Settings screen (module)
Loading and saving the settings in your module settings screen. The ModuleSettingsBase implements LoadSettings and SaveSettings.  The namespace of the ModuleSettingsBase is DNN.Entities.Modules.ModuleController.

Get settings:

  • GetModuleSettings(ModuleId)
  • GetTabModuleSettings(TabModuleID)

Save settings:

  • UpdateModuleSettings(ModuleId)
  • UpdateTabModuleSettings(TabModuleID)
Print  
 
Module settings - tips and tricks Minimize

 
An other way to store and retrieve your settings is to use your own table with data.

Print  
 
 

 
 
 
 
 
 
Home|Company|Products|Contact|Forum|Downloads|Knowledge base|Shop
Copyright (c) 2010 FRENT IT Terms Of Use Privacy Statement September 6, 2010