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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesShare common data across modules  (master module?)Share common data across modules (master module?)
Previous
 
Next
New Post
2/6/2018 9:44 PM
 

I need to develop a application within a DNN page where, for various reasons (mostly layout), it needs to be broken into multiple custom modules (4-6) all residing on the same page.

There is a lot of basic data that is common between these different modules that is driven by a common query string parameter (productid). 

Is there a method where I can retrieve the data from SQL just once and in one module (a master module of sorts) and share this common data (inherit it) amongst the other modules on the same page or must I have to write all the logic into each and every module to parse the Id from the query string and retrieve the data?  

The ability to share common data between the the modules would reduce processing and coding  overhead significantly.

Any suggestions most welcome.

Les.

 
New Post
2/6/2018 10:18 PM
 
Les,
usually you would create one module package with multiple module definitions (those are the modules you may place on a page and may contain one or multiple controls). In you module you would create business classes, including the ones for the data access (with caching), and you would call these info and manager classes from your front end, see the module templates available for DNN..

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesShare common data across modules  (master module?)Share common data across modules (master 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