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.0Is it possible to embed a DNN module into a different DNN module?Is it possible to embed a DNN module into a different DNN module?
Previous
 
Next
New Post
7/16/2008 12:55 AM
 

>>> is it possible to pass data and variables between modules

Yes. You can use one or more of these technique :

 

  1. By using querystring (common way)
  2. By using Inter Module Communication (specific to DNN)
  3. By monitoring a table using some interval to check is there any newest value (uncommon, but you can use it)
  4. By using session

I guess you should watch what is the querystring when working with DMX3 module if you want to embed it inside your custom module. Sometimes, we can see module's behavior from it's querystring. A lot of modules using querystring based for passing data and variables between and inside module. Watching querstring sometimes usefull.

Every DNN module consist from web user control. You can load it directly inside your module. But your security settings will gone :) This is not recomended way for loading other module inside your module. That's a hack. :) But you can do it. 

If you just want to show (with limited functionality), i think it's not a problem. Or you can override render method and using regex when processing web user control to get some string that you want to retrieve maybe.

HTH.

 
New Post
7/16/2008 6:51 AM
 

Hi Agung,

Thanks for the feedback. I'm still very much in the brainstorming phase with this problem.

But is was just thinking, would this be possible to use the HTTP context class for this?

See also: http://msdn.microsoft.com/en-us/library/system.web.httpcontext.aspx

Am not in the office right now to try it out. But would it be possible to use the http context class to check for class object instances of a module in this case DMX3 running on the page?

Like for example, a user is making a multiple selection on a datagrid within the DMX 3 module, can this selection be referenced i.e. be seen by a different module?

Again thanks for the feedback, appreciate it alot.

In the past I used to program a lot, recently like a year or two I haven't got around to coding as much as in the past, so I am a bit rusty. So forgive if I sound a bit daft and I misunderstood  the whole HTTP context class thingy.


 

 


Regards,

Jerry Tjon
IT Consultant
Amsterdam,
the Netherlands
 
New Post
7/17/2008 3:42 AM
 

HttpContext is per-request basis. I'm not sure if DNN put module interaction from a user into httpcontext class. If you do some testing for iterating HttpContext class, you will a value like this :

For anonymous user :

Object: AspSession ---- Key: AspSession ---- Value: System.Web.SessionState.HttpSessionState
Object: PortalSettings ---- Key: PortalSettings ---- Value: DotNetNuke.Entities.Portals.PortalSettings
Object: UserInfo ---- Key: UserInfo ---- Value: DotNetNuke.Entities.Users.UserInfo
Object: UrlRewrite:OriginalUrl ----Key: UrlRewrite:OriginalUrl ---- Value: http://localhost/dnn484/Manager.aspx
Object: AspSessionIDManagerInitializeRequestCalled ---- Key: AspSessionIDManagerInitializeRequestCalled ---- Value: True
Object: httprequestfilter.attemptedinstall ---- Key: httprequestfilter.attemptedinstall ---- Value: True

For logged in user :

Object: AspSessionIDManagerInitializeRequestCalled ---- Key: AspSessionIDManagerInitializeRequestCalled ---- Value: True
Object: UserInfo ---- Key: UserInfo ---- Value: DotNetNuke.Entities.Users.UserInfo
Object: httprequestfilter.attemptedinstall ---- Key: httprequestfilter.attemptedinstall ---- Value: True
Object: PortalSettings ---- Key: PortalSettings ---- Value: DotNetNuke.Entities.Portals.PortalSettings
Object: UrlRewrite:OriginalUrl ---- Key: UrlRewrite:OriginalUrl ---- Value: http://localhost/dnn484/Manager/tabid/54/articleType/NewsListing/Default.aspx
Object: AspSession ---- Key: AspSession ---- Value: System.Web.SessionState.HttpSessionState
Object: Personalization ---- Key: Personalization ---- Value: DotNetNuke.Services.Personalization.PersonalizationInfo

As you can see that there is no information about module interaction that DNN put inside httpcontext class.

or maybe you can watch DMX3's database to provide, for example, monitoring a value inside it's table. Then by using this value, you can construct your own logic. But this is hard to do if you don't know how third partie's module works even that's possible to do. :)

CMIIW.

HTH.

 

 
New Post
8/6/2008 9:27 AM
 

Hi Agung,

Thanks for the feedback! But actually I'll be moving away from Dotnetnuke for awhile...project wise . Nothing to do with DNN, as I'm a big fan... just ya'know stuff happens...other project come along etc....

Anyways, won't be able to try all your recomendations.

But thanks anyways...

Greetings,

 


Regards,

Jerry Tjon
IT Consultant
Amsterdam,
the Netherlands
 
New Post
8/6/2008 9:47 AM
 

To add the cms item to then event item you don't nedd to pass any data between modules.

Just need to add the cms item to the events module table.

it would look better and cleaner if you just developed a new module to display the cms items along with some status/check fields.

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Is it possible to embed a DNN module into a different DNN module?Is it possible to embed a DNN module into a different DNN 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