One of the mostly widely used module in DotNetNuke is the HTML module, which is used to add html content to the portal pages.
Sometime, we need to add same html content to multiple (or all) pages of a portal. In such cases one option can be to add separate HTML modules on required pages and add content. But this is not the best option; as if we need to edit the content, we will have to make changes to all HTML modules one by one. To solve this issue, DotNetNuke provides a built-in functionality to add reference of the modules on different pages. This way, you only have to edit the content at one place and the changes are automatically replicated at all reference modules.
DotNetNuke default functionality only supports adding reference of modules within the same portal. Some time we come across a requirement where we want to show same content on two different portals or two different hosts. The built in functionality provided by DotNetNuke is limited to one portal only and there is no such functionality available to add reference of HTML modules across DotNetNuke hosts or even across portals.
To meet this requirement, I have developed two modules. With the help of these modules, HTML modules can be referenced across different portals in one DotNetNuke host, these modules can also help to create HTML module reference in portals which reside on different DotNetNuke hosts.
How to Use?
Usage of these modules is very simple. First you need to add HTMLBroadcaster module on any of the portal on the DotNetNuke host. Now you can add HTMLReceiver module on the page where you want to add reference of the HTML module. In the setting of the HTMLReceiver module, you will have to set the URL of the HTMLBroadcaster page and Module Id. This module support caching as well. If you want to cache the HTML content on the Receiver end, you can mention the number of minutes to maintain cache. Once cache is expired, content will be fetched from the Broadcaster.
You can try it yourself to see these modules in action
A quick reference on how to use these modules can be found here.
You can review this blog entry to get more info.