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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Modules communicating with each other?Modules communicating with each other?
Previous
 
Next
New Post
2/20/2009 5:58 PM
 

This is kind of an abstract question, but...

If I create 2 custom modules (controls) for DNN 4.91 or higher, is it possible that each module can communicate with each other?  In other words, can module A pass data to module B or do the controls run completly isolated?

Thanks,

--Jeff


Check out Doory.com
 
New Post
2/21/2009 12:11 AM
 

Look for "Intermodule communication"




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
2/22/2009 2:10 PM
 

Hi jeffk,

Yes it is possible with the right settings you can communicate page to page, but you have to wire up the communication, meaning you need to create a settings page for each module. The settings page enables you to choose a target page and module, then use the standard NavigateUrl method to pass module A data to module B data.

Optimus

 
New Post
2/22/2009 6:24 PM
 

 Both responses so far are two seperate situations.

The first is if you have multiple modules for the same "page function" that you want to interact. Such as the blog module does. You would want to look into intermodule communication for that scenario (pretty much any where the modules are on the same page).
You could use querystring variables for modules on the same page - but to do so will require the page to redirect to the new URL, which would not be the desired action, in most situations.

The second is having 2 modules on seperate pages pass information (one way or bidirectional). There are a few ways to do this

Query Strings
Cookies
Database
Session Variables

These all have benifits and drawbacks, ect... Depending on what you need to do, would best determine what would work best. 

Query strings are additional information passed in the URL. Check the url you are at, you'll see something like "forumid/118".
Cookies are cookies.
Database - Most often you will want to use this for situations where you wish to save a user settings, such as a skin selection, or toggle status, ect. If you were doing information for "this visit" the database probably isn't the best option.
Sessions variables don't work reliably in a webfarm environment, so it's not a "supported" feature in DNN. It does work in non- webfarm situations. I have used it myself on occasion.
 

Hope that helps a little more.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Modules communicating with each other?Modules communicating with each other?


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