New features Please use http://kentico.uservoice.com as the primary place to submit your suggestions and allow others to vote for your ideas!
Version 4.x > New features > Using custom favicon for all page types View modes: 
User avatar
Member
Member
Steve-Appetere - 11/14/2009 10:59:25 AM
   
Using custom favicon for all page types
Hello

When you want to use a custom favourites icon (favicon), that is in some location other than ~/favicon.ico, this is complex to do:

You can modify ~/CMSPages/PortalTemplate.aspx (as described in http://devnet.kentico.com/Knowledge-Base/Design-and-css/Different-favicons-per-site-in-Kentico-CMS-4-0.aspx) for content pages.

But if you want the same favourites icon to be used for other CMSPages (like handler404.aspx) or for CMSMessages, of for CMSDesk and CMSSiteManager, you have quite a complicated job to ensure that every page uses the favourites icon you want.

So it would seem easier just to use ~/favicon.ico, and none of this would be necessary. But if you want to change the favourites icon, you really have to rename it, to force Internet Explorer to notice the change, and use the new icon (otherwise IE will just use the previous, cached version it has).

So ideally, the favourites icon to be used would be added as a site-specific configuration option, with the Kentico code taking care of making sure every type of page uses it.

Regards,

Steve

User avatar
Member
Member
Steve-Appetere - 11/14/2009 11:30:39 AM
   
RE:Using custom favicon for all page types
Just a further thought:

An intermediate step to improve things would be to add a configuration option to turn on or off the behaviour that automatically detects if ~/favicon.ico exists, and then adds the <link> tags for it to the <head> of each page.

If this is turned off, then you can save the new favicon twice, with two names, eg:
- ~/favicon.ico
- ~/myNewFavicon.ico

That way, the less important pages (messages, CMSDesk, etc) will eventually pick up the change to favicon.ico when the brower's cache is cleared, but content pages will change immediately to myNewFavicon.ico.

The Kentico behaviour that adds a link to favicon.ico needs to be turned off in this instance, otherwise there would be links to two different favicons in the html, so the browser may not choose the one we want.


User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 12/2/2009 11:50:53 AM
   
RE:Using custom favicon for all page types
Hello,

I've passed better favicon management (e.g. site specific) as an requirement to our product manager. He'll consider implementing such feature within one of the next versions.

Best regards
Ondrej Vasil