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.0Multiple modules inside one?Multiple modules inside one?
Previous
 
Next
New Post
7/14/2006 4:52 PM
 
My question is: how to get multiple controls inside one module to display within their own containers and with those containers providing logic for those controls only? When you add a DNN Blog to a pane, it embeds a lot of controls, behaving like separate modules, with own settings and so on. How can I do this with my module and controls?
 
New Post
7/22/2006 10:36 AM
 
Sorry for bumping this, but I'm really clueless about what to do now.

I have implemented my own ArticleModuleBase in a pretty much identical way that the Blog module implements BlogModuleBase. I have created an agregating control and loaded the two other controls as seen below:

protected void Page_Init(object sender, System.EventArgs e)
{
    try
    {
        PortalModuleBase portalmodulebase_categories;
        portalmodulebase_categories =    
            (PortalModuleBase)this.LoadControl("~/DesktopModules/Articles/ViewCategories.ascx");
        portalmodulebase_categories.ID = System.IO.Path.GetFileNameWithoutExtension(this.ModulePath +        
            "ViewCategories.ascx");
        portalmodulebase_categories.ModuleConfiguration = this.ModuleConfiguration;
        portalmodulebase_categories.LocalResourceFile = this.TemplateSourceDirectory + "/" +
            DotNetNuke.Services.Localization.Localization.LocalResourceDirectory + "/ViewCategories.ascx.resx";
        this.Controls.Add(portalmodulebase_categories);


        ViewArticles viewarticles_dynamic;
        viewarticles_dynamic = (ViewArticles)this.LoadControl("~/DesktopModules/Articles/ViewArticles.ascx");
        viewarticles_dynamic.ID = System.IO.Path.GetFileNameWithoutExtension(this.ModulePath +
            "ViewArticles.ascx");
        viewarticles_dynamic.ModuleConfiguration = this.ModuleConfiguration;
        viewarticles_dynamic.LocalResourceFile = this.TemplateSourceDirectory + "/" +
            DotNetNuke.Services.Localization.Localization.LocalResourceDirectory + "/ViewArticles.ascx.resx";
        this.Controls.Add(viewarticles_dynamic);

    }
    catch (System.Exception exc)
    {
        DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(this, exc);
    }
}



The controls load within the container. I have absolutely no clue as to why they load witin their own containers in the blog module and what I should do to replicate that behaviour. Can someone please help me with this?
 
New Post
7/23/2006 5:55 PM
 

I am not 100% sure but I think the blog module is composed of multiple modules that use a DNN framework feature called "Inter Module Communication, IMC" It's mentioned briefly in the module developers guide (also not entirely shure)

 

What you are doing is essentially just loading usercontrols dynamically, From your description it sounds as if you need/want IMC


Edit your Skin.xml and Container.xml files with:
Yannick's SXE
 
New Post
7/24/2006 6:31 AM
 
Multiple modules? But it is deployed as one module, and the source code just shows multiple ascx controls that are being loaded dynamically. Can you actually compile one project into a deployable zip file so that it loads into DNN as multiple modules?

Maybe there's some easier way for me to do what I want to do - can I somehow explicitly call the container as a class, or a control and wrap it around my own control?
 
New Post
7/25/2006 6:06 AM
 

I am pretty sure that Blog module comprises of multiple modules which are binded together by the same .dnn file configured in a way that when you it to your page it drops all of it's child modules as well. Also if you will notice you can delete module by module off a page and leave only the ones you need.

I am not sure how they communicate, it can be done in one of several ways:

- IMC
- QueryString
- Session or some other persistance medium

 

HTH


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Multiple modules inside one?Multiple modules inside one?


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