Tuesday, February 09, 2010Login    
Will Strohl - The Mighty Blog - RSS Feed

 Most Popular Entries 
 Blog Tag Cloud 
 Blog Roll 
 Search Blog 
 Blog Listing 
 Blog Archive 

 


 The Mighty Blog 
Jun27

Written by:Will Strohl
6/27/2009 

DotNetNuke Gear Logo In DotNetNuke®, a favicon of the DNN gear logo is placed as the default favicon.  For some websites, this is no big deal.  However, for any site that requires its own branding, changing the favicon is a really big requirement.  Luckily, DNN makes changing this easy, and flexible.

First of all, in the root of your DNN site, there are two favicons:

  • favicon.ico
  • DotNetNuke.ico

Both files contain the same image, the DNN gear.

You could just overwrite the favicon file with your own.  However, that is technically making a core code change, and if you end up putting a second portal on your DNN instance, both sites will be using the same favicon.  This will likely put you into the same position that you originally were in, in the first place.

The real solution is to put your favicon into the root of your portal directory, saved as favicon.ico.  For example, for the root site, your file name and path might match the following:

~/Portals/0/favicon.ico

When your site is loaded, the DNN framework will automatically grab and send the new favicon to the web browser, instead of the one on the root of your DNN installation.  This will work for each and every portal that you have as part of this single DNN instance.  For example, if you have 50 portals hosted in your DNN instance, each one can have its own unique favicon using this method.

Technorati Tags: ,,,

Tags:

2 comment(s) so far...

I suspect that this would also give you the benefit of not having your favicon over-written with the default whenever you upgrade. Haven't tested that theory yet, though.

By Sam Erde on   7/2/2009

As long as you upgrade using the actual "upgrade" package, and not the "install" package, you shouldn't have any problems. Only the install package has the DNN favicon in the root.

(Yes, some people upgrade using the install package. I do not recommend it though.)

By Will on   7/2/2009

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment   Cancel 
Add to Technorati Favorites
Tweet about my blog
© Copyright 2004-2010 by Will Strohl. All rights reserved.
This site is proudly hosted by Applied Innovations