How to change favicon dynamically
Question

Hello guys,

Could you please help me to figure out a way of changing favicon dynamically by using AddFaviconTag action or some other way?

Will appreciate your help!

mvp_badge
MVP

Hi,

To change the favicon you can read this document. Just change the IconFileName to whatever rule you decide.

Regards,

Marcelo 

Hi Marcelo,

I  tried that way but I don't know why it haven't changed. Could it be a reason of file? In  the resources I imported two icons and via Iconfilename  tried to build some logic.


mvp_badge
MVP

Hi Meri,

On your layout you should also have a AddFaviconTag that adds the default favicon. you need to delete this one from layout and add yours.

Regards,

Marcelo

Hi Meri,

To change favicon or icon dynamically from database.

First create a empty screen & add preparation on it. This screen or page is used for getting the icon dynamically from database.

Then add JavaScript on module to change the icon dynamically on ready event. This will change icon at runtime.

Regards, 

Pushpendra Singh

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.