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.0About Modules SettingsAbout Modules Settings
Previous
 
Next
New Post
8/3/2006 7:50 AM
 
Hi,
I'm developing two new modules for Reporting, a ReportGrid and a ReportChart.

Both of them are modified version of Reports module from the core team.

I've found this is implemented with a tree user level access: Host, Administrator and User.
The settings are implemented with sections. The section "Data Source" is editable by the Host user only. Administrator can modify just the other's settings.

At source code are used two settings type:
  • Module Settings, retrieved using the ModuleId
  • Tab Module Settings, retrieved using the TabModuleId
Can anyone explain me the difference? When I should use one or the other?
Kind Regards
Danilo

 
New Post
8/3/2006 9:17 AM
 

TabModuleSettings are those that apply to EACH specific instance of a module regardless of whether the module instance was created by the "Add New Module" or "Add Existing Module" (shadow module) commands or by checking the "Display Module on All Pages" checkbox under the module settings advanced page.

ModuleSettings are those that apply "globally" to ALL instances of a module that has been created by the "Add Existing Module" command or by checking the "Display Module on All Pages" checkbox.

The DNN core does not provide for module settings which are truly global apply to all instances of a module regardless of how it was created.  For this purpose, some developers have used the ModuleID of the Host Settings module (which can have only one instance).  As I have often have need of truly global module settings (typically for non-DNN database connection strings and administrative settings), I added this functionality (tied to DesktopModulefID) to my own base classes (derived from PortalModuleBase, ModuleController, and ModuleSettingsBase) and added the table DesktopModuleSettings and the various stored proceedures that follow the same pattern as those used for the core's ModuleSettings and TabModuleSettings. Using these derived base classes, one can save settings that are tied to the TabModuleID (TabModuleSettings), ModuleID (ModuleSettings) or DesktopModuleID (DesktopModuleSettings) then retrieve them in the module controls from the Settings hashtable.  I would like to see the core add a similar, more global module settings capability in future releases.


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
8/3/2006 9:22 AM
 

when you add a module to a page, you can choose between a new module and a copy of an existing one - in fact, the latter is placing only a reference and same is happening, when you activate the "show on all pages" option in module settings. To accomplish this, everytime a new module is placed on a page (former called tab), besides the record in modules a record in tabmodules is created, linking between module and tab. And for references, only an entry in tab modules needs to be added. According, module settings contains settings for all references of the module, while tab module only contains page specific settings. HTH.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0About Modules SettingsAbout Modules Settings


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