Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Is it possible to embed a DNN module into a different DNN module?
Previous Previous
 
Next Next
New Post 7/8/2008 2:51 AM
User is offline Jerry Tjon
42 posts
10th Ranked


Is it possible to embed a DNN module into a different DNN module? 
Modified By Jerry Tjon  on 7/8/2008 8:24:13 AM)

Dear All,

I was wondering if anyone knows if it is possible to embed a DNN module into a different DNN module or maybe already has such a solution running.

For example, I would like to use the Events module as a provider for a different module, using it as a very advanced web control / provider for a different module.

Hope to hear from someone on the subject...

Greetings,

 

 


Regards,

Jerry Tjon
IT Consultant
Amsterdam,
the Netherlands
 
New Post 7/8/2008 3:09 AM
User is offline Sebastian Leupold
15159 posts
www.deutschnetnuke.de
1st Ranked












Re: Is it possible to embed a DNN module into a different DNN module? 

I remember there have been aggregator modules, i.e. this is possible, but I cannot tell you about performance issues and other limitations.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 7/8/2008 3:32 AM
User is offline Wes Tatters
410 posts
8th Ranked




Re: Is it possible to embed a DNN module into a different DNN module? 

It would be possible to add code to an events module to allow it the ability to dynamically load another module.

The functionality is not there at the moment - but it something that could theoretically be done ...

Westa

 
New Post 7/15/2008 4:01 AM
User is offline Agung Riyadi
100 posts
9th Ranked


Re: Is it possible to embed a DNN module into a different DNN module? 

Yes you could.

First, you have to know which module you want to retrieve it's content. This is usually by querying a tab to get module list. Then based on your module list, you can choose which module you want to retrieve it's content. I will show you an example, notes that this is only proof of concept that i've been doing for my client. Feel free to modify.

Suppose that you have Home page. Then in that page you have one module (let say Events module with it's contents).

Open your Visual Studio, and create your custom module. Feel free to name it. Add one web user control with simple name like View.ascx or something. Go to View.ascx.cs (your code behind) then add this code in your Page_Load method.

TabController tc = new TabController();
// Home is your other tab on which you want to load tab's modules
// in reality, you can make it as dropdownlist to show all user's tab and make a choice
TabInfo ti = tc.GetTabByName("Home", PortalSettings.PortalId);   

// Show tab's module from Home page
ModuleController mc = new ModuleController();
Dictionary<int, ModuleInfo> listModules = mc.GetTabModules(ti.TabID);

string ctrl = "";

foreach (KeyValuePair<int, ModuleInfo> item in listModules) {
    ModuleInfo mi = item.Value;
    ModuleInfo eventModule = mc.GetModule(mi.ModuleID, ti.TabID);
   
    // Notes that this is because you have only one module
    // in reality, you can make it as dropdownlist
    // so user can choose which module they want to load
    ctrl = mi.ControlSrc;
}

PortalModuleBase objPMB = (PortalModuleBase)this.LoadControl("~/" + ctrl);
objPMB.ModuleConfiguration = this.ModuleConfiguration;
objPMB.ID = System.IO.Path.GetFileNameWithoutExtension(ctrl);

// Create placeholder control dynamically to inject portalmodulebase
PlaceHolder ph = new PlaceHolder();
ph.Controls.Add(objPMB);

this.Controls.Add(ph);

Build your custom module. And install it into your DNN website. Let's go to the next step.

You create another page with name Page2 and drop your custom module onto it. Then you will see that your custom module will render as Event module from Home page or we can say that you have been embedding your Events module inside another module. :)

HTH.

 
New Post 7/15/2008 9:22 AM
User is offline Jerry Tjon
42 posts
10th Ranked


Re: Is it possible to embed a DNN module into a different DNN module? 
Modified By Jerry Tjon  on 7/15/2008 11:40:48 AM)

Hi All, Agung,

Thanks for the in depth reply.

What I have is a custom module which I use for Document Management, DMX version3.

I would like to adjust the Events module in such a way that I am able to select documents press a button and export those to the events module as an event item.

The Event module can then be used by users to check which documents need to be checked by a document management  team member, the team can plan ahead, generate work list per week, set Reminders etc.

So the next question I have is, is it possible to pass data and variables between modules, I guess you need to be able to pass variables between modules.

Again thanks for the reply!

Cheers,


Regards,

Jerry Tjon
IT Consultant
Amsterdam,
the Netherlands
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Is it possible to embed a DNN module into a different DNN module?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com
SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com
Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP