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.0Module vs. TabModule - I still donModule vs. TabModule - I still don't get it
Previous
 
Next
New Post
4/21/2009 1:01 PM
 

I thought I understood what the differnce between "Module" and "TabModule" was. This initially was brought up when I was getting or setting ModuleSettings or TabModuleSettings.

From my reading, it seemed that TabModules were an instance of a module on a page (tab), and the Module represented a Module that was used in a portal. Thus, all instances of a particular module all over a portal would share the same ModuleSettings.

As I'm developing my module I notice that a newly dropped module on a page was not reading any value from this "ModuleSetting". I go look in the Modules table and notice there is one row for each module I've dropped on my portal, each having different ModuleID values...which means separate settings. 

...are there any real shared setting values among multiple module instances on the same portal? ...and what are ModuleSettings really used for?

I appreciate any insight into this. :) Thanks!

 
New Post
4/22/2009 6:49 AM
 

To furter complicate your question:
There is also a TabsModuleSettings table which I believe is used to configure a instance of your module on a particular tab therefore I would say the real shared setting values you are looking for are maybe in these 3 tables:

  •  DesktopModules
  •  ModuleDefinitions
  •  ModuleControls

(not sure anyway)

 

 

 
New Post
4/22/2009 11:32 PM
 

HI,

in my opinion the difference between ModuleSettings and TabModuleSettings is only important if you copy an existing module to another page. In this case there is no new ModuleDefinition entry. Therefore the ModuleSettings are shared.

 
New Post
4/23/2009 4:29 AM
 

I am sorry, but not of you won the prize 

The correct answer is:

when you place a module on a page using "add new module" in the control panel, a new module instance is created as an entry in Modules table, which holds the content. Same time a page reference is created to link the module instance with it's display and location on a page, by adding an entry in TabModules table. Why this? Because this allows to share content: if you select "copy existing module" in the control panel (which is misnamed and should be named "create shadow copy"), only an additional entry in tabModules table is created, pointing to the same module instance (entry in modules table), resulting in an update of the module content on both pages.

ModuleSettings contains settings for the module instance, TabModuleSettings holds settings for each specific reference only. E.g. UDT uses modulesettings for column setup properties (some are in custom table) and tabmodulesettings for output specification like rendering options, which allows you to have different display of the same content on different pages.

PS: module developers and admin need to be aware, that tabmodulesettings are not contained in module exports by design.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/23/2009 4:32 AM
 

PS: if you need to provide settings for portal, you might add your settings to portalsettings HostSettings table (portal id added to the name), but make sure, to use a unique settings name. Check out, how FCKEditor handles storage of portal wide custom settings. 


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.0Module vs. TabModule - I still donModule vs. TabModule - I still don't get it


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