Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Per-site favicons View modes: 
User avatar
Member
Member
mwinningham-global-id-group - 3/5/2009 5:40:36 PM
   
Per-site favicons
This was discussed here before, but that forum is closed now so I can't post this there.

I would like to have a different favicon for each site, but Kentico automatically adds a link tag for /favicon.ico to every page. This link comes after the <head> content that can be added to each template, so it overrides any favicon set there. Is there any way to change this behavior?

The older thread says to inherit from DocumentBase and override FavIconTag, but I don't see how this could work. If I create a subclass of DocumentBase, how could the application know to use it instead of CMS.UIControls.DocumentBase?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 3/9/2009 11:09:16 AM
   
RE:Per-site favicons
Hello,

If you want to use your custom favicon for each site you can delete the default ~\favicon.ico file. This will ensure the link to it won't be generated.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
Chris - 5/15/2009 2:06:39 PM
   
RE:Per-site favicons
Does this actually work? If I delete favicon.ico, the reference is still included in the markup.

This thread makes reference to overriding a method in DocumentBase:

http://devnet.kentico.com/Forums.aspx?forumid=33&threadid=6201

...but can an example be given? Even if the class is inherited, how does the system know to use the derived class?

I'd be happy if the system simply didn't output any favicon reference so we could just manually include a link reference to it but I don't see a way to stop it from doing that in the portal engine.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/24/2009 6:26:52 AM
   
RE:Per-site favicons
Hi Chris,

The link shouln't be generated if default favicon is deleted. Could you please try to delete cache in your browser, eventually also try to restart application in 'SiteManager -> Administration -> System' section?

Best Regards,

Martin Dobsicek