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.0Unique variables between portals and modulesUnique variables between portals and modules
Previous
 
Next
New Post
10/31/2008 3:29 AM
 

Hi There,

I want to know something about variables between multiple portals and modules.

E.g.

I have portals 0 and 1 and in both portals I am referring one module (let say EmployeeOverview) in both the portals. And that module containing "EmpID" which should be different per portal.

If user "a" is logged in to portal 0 and looking at the page which is containing EmployeeOverview module. This user is looking at Employee "X". Same time user "b" is also logged in to portal 0 and looking at Employee "Y". How to handle this situation as DNN dont use Session object.

Another situation can be user "a" is logged in to Portal 0 and looking at Employee Overview for Employee "X" and user "b" is also logged in but to Portal 1 and looking at Employee Overview for Employee "Y". How to make use of single module between the portals and how to make it unique.

Please let me know how to handle these situations.

Thanks & Regards,
Deepak Khopade
L&T Infotech, Pune, INDIA.
deepak.khopade@glntinfotech.com

 
New Post
10/31/2008 4:33 AM
 

First, I moved the post because it is NOT related to FCKEditor provider.

Please be aware, that a module package installed in DNN is identified by ModuleDefinitionID, while a module instance placed on a page is referenced by ModuleID (and the  page reference as tabModuleID). ModuleID is the key, what is currently displayed, e.g. in the Text/HTML editor. If you want to display User specific content, like the user's summary, you may also filter data (either module or portal specific) by userID, which can be obtained from httpContext. This is used e.g. in UserDefinedTable, if users are allowed to edit only own content.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/31/2008 6:54 AM
 

Hi Sebastian Leupold,

Thanks for your reply. And explaining about the relations between tab & modules.

Just one question, Can I store my own variables in HttpContext object? Like EmpID = <<value>>? And where can I intitiate the values? I mean to say whether in Module's codebehind file or somewhere else?

Please let me know your comments.

Thanks & Regards,
Deepak Khopade
L&T Infotech, Pune INDIA
deepak.khopade@lntinfotech.com
 

 
New Post
10/31/2008 8:37 AM
 

you may extend the user profile via UI (use "Manage Profile Properties" in Admin :: Users menu item) and are able to access the profile property via user info in http context.

if you need additional settings, you may consider to store it in a cookie or the database.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/10/2008 8:58 PM
 

If I am right you want to share variables between two different user sessions. Is this correct?


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Unique variables between portals and modulesUnique variables between portals and modules


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