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.0Inter-Module CommunicationInter-Module Communication
Previous
 
Next
New Post
11/13/2008 10:57 PM
 

I am developing a Blog-like module, that would generate multiple modules when added to a Page. However, all these sub-modules generated are logically related and need to communicate with each other.

In particular, as soon as they are added to a page, they would be moved to different pages (tabs). I need to be able to redirect from one such page (tab) to other page in response to user actions.

Is that possible??

Secondly, is it possible to use the same Control key for two controls belonging to two different modules in this case (i.e. can same Control key be used with 2 modules defined within the same <folder> tag)??

 
New Post
11/14/2008 1:18 AM
Accepted Answer 

Intermodule Communication will only help you if the module are located on the same page.

If you're moving module controls onto separate pages, the most thorough way to deal with this is to put a tab drop down in the module settings.  Then, when generating links or redirects between module controls, you can then read in the setting, generate the correct url and everything will work fine.

Just create a custom settings control for your module, and in that, have a list of destination pages :

Widget 1 Page : <pagename>

Widget 2 Page : <pagename>

I do this with drop down lists of the non-admin tabs in the currentl portal, then store the tabid into the tabmodule settings.  Note that you should use the TabModule settings, to give users the ability to have more than one module instance in their portal.

I blogged about this recently : http://www.ifinity.com.au/Blog/Technical_Blog/EntryId/48/Designing-Structuring-and-Architecting-DotNetNuke-reg-Modules/

For your second question, yes, you can re-use control keys outside of each individual <module> definition.  You can see this for yourself, as every module has a 'settings' key, and most seem to have an 'edit' key.

Hope this helps.

 
New Post
11/14/2008 10:26 AM
 

Hi Bruce. It would be really helpful if you can give a quick sample for populating that Tab Drop-Down in the Settings control, as well as how to use the Setting to generate the Correct Url.

 
New Post
11/15/2008 9:20 AM
 

For all others, it was more easy than I expected it to be:

Markup:

                <asp:DropDownList runat="server" ID="comboAddDistTab" CssClass="NormalTextBox"
                    DataTextField="TabName" DataValueField="TabId" />
Code:

                    Me.comboAddDistTab.DataSource = arr
                    Me.comboAddDistTab.DataBind()

That was it!!! Use NavigateUrl() or EditUrl() to generate the Url, passing the TabId from settings!!!

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Inter-Module CommunicationInter-Module Communication


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