September 8, 2010  
  You are here:  ArticlesDotNetNuke ArticlesWhat Good Is A Shadow Module?

QTCommunicationSimplified50.gif


Try Radicomm's Quicktalk, the first enterprise-class Push-To-Talk application for your Motorola/Symbol rugged devices, in your distribution center for free.

Click here to enter the 21st Century.


What Good Is A Shadow Module?
 

Have you ever wondered what a shadow module is good for?  I have.  I recall seeing one a year ago and asking myself...so?

Well, the lightbulb just came on the other night!  I was trying to figure out a good way to share navigation among the pages for the DNN Central portion of NetSplore.  Basically, I wanted a list of links of all the relevant pages that would be consistent across all the pages.  I certainly didn't want to create a large number of links modules, add links to all of them, and try to maintain this mess.  I looked at different options.  I found modules that look at the child pages of the current page and created links for them.  I found a module that displays a stack of your most recently visited pages.  All these types of modules have their uses, but none of them were what I really wanted.

Shadow Functionality To The Rescue

I finally got it.  The purpose of shadowing, that is.  Now, maybe I shouldn't say 'the'  purpose of shadowing.  Currently, I only see one good reason...the one I just found.  But then again, I didn't see this one until just now, so maybe there are more I have yet to discover.

What if I created a module with links to the exact pages I wanted and hid this instance of the module and then shadowed it onto every page I wanted it?  Oooh, let me say that again.  I create one list of links to all my relevant pages and shadow that everywhere I want it!  Yeah baby!!!  I think I am onto something here.

So, I added a links module to a hidden page the user cannot navigate to.  I like the Bonosoft Links module for this purpose.  Here is what the module looked like after I configured it:

shadowed_menu.jpg

Then, I used a module with shadow type functionality and added one to every page I wanted this navigation on.  I say the module has 'shadow type functionality'  because that is not the primary purpose of the module I used.  I used the Module Wrapper by ZLDNN.com.  It does way more than shadow, but it provides this functionality as well.

Now, I have a single module to maintain that has all the links for DNN Central, but it is available from every page.  I liked the way it worked so much that I put it at the top and bottom of each page.  Click on one of the DNN Central pages (DNN Modules, DNN Skins, etc.) and notice the row of links across the top and bottom of the page.  Click on one of the links and the page you navigate to has the same list of links at the top.  If I want to add a link, I do it in one module, the original hidden one and it is reflected in all the shadowed copies.  Pretty cool.  Consistent and easy to maintain, just the way I like it.

Now I finally get the value of a shadow type module.

Below is a list of links of shadow type modules I have found.  After reading this article, you have to wonder...are you looking at the real module of links, or is it a shadowed copy?

 

 
Modules That Provide Shadow Functionality
 
If you have or know of a module that provides shadow functionality that I have omitted, let me know via the feedback form on the DNN Central page and I'll add it to the list.

 
Article Comments
 
DateNameComment
3/14/2007 Ameena But we can do the same thing by choosing 'Add existing module', right? By choosing 'Add existng module' we can specify a page and a module in that page that we would like to copy to the current page. Is the shadow module by any means different from adding an existing module?

Joe Rattz: It is a little different, but compared to the module I am using, using the 'Add existing module' feature actually works better. The reason is that by using the 'Add existing module' feature, you can actually edit the shared module at any location and the change will be shared among all the copies. The module I am using to get the shadowing functionality won't let me edit the shadowed module, so I have to go to the actual module itself to edit it. For all purposes, if you are using a version of DNN that has the 'Add existing module' feature, it is probably better to use it.
11/16/2006 Joe Rattz Hey Josh, how's it going? Yes, there are some differences. First, using the display on every page does exactly that, every page. You may not want that. Sometimes, a portion of your site may be a nice logical group and you just want to share something among those pages. For example, the DNN links at the top and bottom of this page are shadowed on all of my DNN related pages. It wouldn't make sense for them to be on all my other non-DNN pages. Also, I have had placement issues with display on all pages. Sometimes the module will be at the top of the pane, sometimes at the bottom. With shadowing, you put the module where you want it.
7/26/2006 Josh Gough Cool Joe, that is a good tip to know. Is a shadowed module different from a "Display this Module on Every Page" option?

Add Your Comment

 

 
    

  Home|Freebies|Blog|Services|Articles|ASP.NET Depot|DotNetNuke Central|Contact Us
  Copyright 2005 Netsplore Terms Of Use Privacy Statement