Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Masterpage HTML and SPUrl

$
0
0

Hi all,

I'm having problems with Masterpage conversion. I want to have server-relative URLs for my favicon. So, I tried this and put it in my custommaster.html.

<link rel="shortcut icon" href="<%$SPUrl:~sitecollection/Style%20Library/Custom/LayoutResources/Images/favicon/favicon.ico %>" />

Problem was, the .master did not get converted. When I check the error, it says Error_20_'<', hexadecimal value 0x3C.

So I tried another approach:

<asp:literal runat=”server” Text=”&lt;link rel=’shortcut icon’ href=’” /><asp:literal runat=”server” Text=”<% $SPUrl:~sitecollection/Site%20Assets/favicon.ico %>” /><asp:literal runat=”server” Text=”‘ type=’image/vnd.microsoft.icon’ /&gt;” />

Also in the HTML masterpage. It did not also create the .master. It says ASP is not available.

Can anyone help me to try to set the favicon.ico using SPUrl? If I do it in .master, it's no problem. But I want to be able to deploy both the HTML and .master, that is why I'm trying to edit the master. But I don't know how to make it properly convert to .master.

Thank you!




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>