Select to view content in your preferred language

Flex 2.2 Favicon

2375
5
01-29-2011 04:28 PM
ChristinaMcCullough
Regular Contributor
How do you change the favicon in the Flex 2.2 version?
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Christina,

  It really has nothing to do with the flex viewer. Changing the favicon is the same for any html document just modify the html document in your case the index.html and add:

<link rel="shortcut icon" href="http://www.example.com/myicon.ico" />
0 Kudos
ChristinaMcCullough
Regular Contributor
The Flex site resides within a Word Press and stand alone.  For Flex 2.2, I only see the index.html in the bin-release folder.  I think I am missing something.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Christina,

   OK, now I am confused on what you are missing then... When you publish your FlexViewer to the web you copy the contents of the bin-release to your web folder and as you mentioned you see an index.html in that folder. The index.html is the main web document for your FlexViewer web page so if you want it to have a favorite icon than you have to add the line of html code to the header section of the index.html. If you are asking about having your development environment  where to put that line than it is in the index.template.html in the html-template folder of your FlexViewer project.
0 Kudos
ChristinaMcCullough
Regular Contributor
Thank you, I wanted to make sure I was doing the right thing.  Much appreciated.
0 Kudos
BarnabyRockwell
Deactivated User
Note that in Flex 3.0 and 3.6, one should add the <link...> line to the header section of the "default.html" file in the main folder of your Flex viewer.
0 Kudos