ASPX templates
Version 5.x > ASPX templates > Favicon.ico View modes: 
User avatar
Member
Member
seanbun - 6/7/2010 1:24:17 AM
   
Favicon.ico
Hi,

I have been tried to use customise favicon.ico for a couple of websites under Kentico5.0. I have read below KB and create a new class inherit from the DocumentBase class and override the FavIconTag properties. Unfortunately, when I run and debug the site, it seems the new class was not executed. Do I miss anything?

http://devnet.kentico.com/Knowledge-Base/API-and-Internals/Using-different-favicon-images-for-multiple-web-si.aspx

Cheers,
Matt

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 6/7/2010 1:17:32 PM
   
RE:Favicon.ico
Hi Matt,

without source code version of Kentico CMS you cannot simply change DocumentBase class. If you are using portal engine of Kentico CMS I would recommend you to remove favicon.ico from root of your web project and load different favicon.ico for different web sites in ~\CMSPages\PortalTemplate.aspx file into HEAD section.

Best regards,
Miroslav Remias.

User avatar
Member
Member
seanbun - 6/7/2010 5:43:56 PM
   
RE:Favicon.ico
Thanks for you reply, Miroslav.

I am actually using ASPX page template. Is there any other way?

Cheers,
Matt

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 6/8/2010 8:18:43 AM
   
RE:Favicon.ico
Hi,

If you are using ASPX templates then there should not be any problem to display different favicon per web site since you have full control of the generated HTML code when using ASPX page templates approach. You can simply add definition of favicon to your master page template and you can use different master page template for different web sites or the same master page template and according to current web site you can load different favicon.

Best regards,
Miroslav Remias.

User avatar
Member
Member
seanbun - 6/10/2010 5:55:44 PM
   
RE:Favicon.ico
You are right. Thank you very much.

Matt