Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
mvalverde

Registered:
Posts: 2
Reply with quote  #1 

I never found a built-in way to do a FAVICON for an Ironspeed app - but I just figured out how to do it manually in about 2 minutes and thus wanted to share.

 

My IS9 app uses the VerticalMenu.master - so in my project under the "Master Pages" folder, I manually edit the VerticalMenu.xml - this file is the template for building the VerticalMenu.master 

 

Using notepad I added the following under the "Head" section.

Code:
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>

 

This will generate the following in your master page

 

Code:
     

 

COPY the favicon.ico file to your "Master Pages" folder because at runtime the href will be altered to "../Master%20Pages/favicon.ico" and you want IIS to find the file.

 

Now you will have your favicon in the browser bar and anyone who bookmarks your app will have your icon on in their bookmarks list.

 

Hope this is helpful!

 


__________________
Michael Valverde
Senior Software Engineer
TroyGroup, Inc.
mvalverde

Registered:
Posts: 2
Reply with quote  #2 

Note above - some reason the CODE block is messing with my example in top - so remove the second "amp;" to correct - both sides.  It won't post correctly!

Thanks,

Mike  


__________________
Michael Valverde
Senior Software Engineer
TroyGroup, Inc.
JimiJ

Avatar / Picture

MVP Developer
Registered:
Posts: 1,954
Reply with quote  #3 
Thanks for the code sharing Michael!

__________________

  Jaime Jegonia
[jts_logo]

Iron Speed MVP Developer
 

". . . and whoever sows generously will also reap generously" 2 Cor 9:6

callten061

Registered:
Posts: 2
Reply with quote  #4 
thanks for the code!!
pk_davidson

Registered:
Posts: 223
Reply with quote  #5 
+1
Tx

__________________
Paul
gchandra

Registered:
Posts: 8
Reply with quote  #6 
Could you please paste the section of the VerticalMenu.xml and Blank.xml; because when I pasted it under the Head section it did not work.

 <LayoutDefinition>&lt;![CDATA[&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;LayoutDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;Layout Name="Master" Type="RootLayout"&gt;
    &lt;Prolog&gt;
      &lt;Value&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
    &amp;lt;head id="Head1" runat="server"&amp;gt;
    &amp;lt;meta name="keywords" content="MyApp1"/&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/"/&amp;gt;
    &amp;lt;/head&amp;gt;
    &amp;lt;body id="Body1" runat="server" class="pBack"&amp;gt;
        &amp;lt;form id="Form1" method="post" runat="server"&amp;gt;


Could you please advise. I have placed my favicon.ico in the Master Pages folder
pk_davidson

Registered:
Posts: 223
Reply with quote  #7 
Another way to use a favicon.ico is to just put that file in your root folder.
I prefer Michael's way.  It gives you a bit more control and you know you've added a favicon.ico.  His method also takes care of some issues with IE.  You can find debate about the use of shortcut because it's a non-standard (not ieee accepted) format.  if interested read wiki and google around...

I have noticed that I have trouble actually changing out the icon that actually shows up, even with rebuild all , precompile, etc...  I generally have to delete the temp framework files to make a file change "stick"

BTW - Chandra, your error is hilighted in red (better late than never?):
&amp;lt;link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/"/&amp;gt;

it should look instead like:
&amp;lt;link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/&amp;gt;

which I believe is what Michael originally posted.

__________________
Paul
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement