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.0Common data between modules.....Common data between modules.....
Previous
 
Next
New Post
3/24/2009 2:32 PM
 

I was wondering if there is a "best practice" for making data common between modules.

For example, I have a module that, when in a content-pane context displays a bunch of links that are a detailed view of each item.  I also use the same module in a right-side bar that is context-sensitive, that is it will display links appropriate only for the current page.  Those links should link to the same details as the main content pane page.  I was creating the links using the NavigateURL function, but since the TabID changes, in the right toolbar form its trying to open the detail control *under the current tab*.

If I hardcode the TabID in the module code I can tell that it works correctly.  Obviously, though, this isnt the ideal solution.

What *would* be the ideal solution?  Should I add a setting to the module to point at the TabID that holds the original data?

 
New Post
3/24/2009 9:44 PM
 

Adding a setting for tabid in your module setting will be the easiest solution. Another alternative solution is you can use a sql to perform a search to look for tabid value.

For ex: IF your module in your right hand side called Module A, you just need to perform a sql to search in tabmodules table that install the module A. So you can grab the tabid.

Hope this help.

 
New Post
3/25/2009 10:24 AM
 

Thanks!

That idea came to me last night as well :) 

The way mine is setup, I am getting the moduleID of the original module that has the content, but the tabID will always be different.  I took the moduleID and used the GetModule function, passing it a null tabID.  Then I was able to pull the tabID of the original moduleID and spit out the URL to point there instead of to the current tab.

-Chris

 
New Post
3/25/2009 7:15 PM
 

Glad that you sort it out :)

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Common data between modules.....Common data between 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