How to set the starting page of the iPhone.aspx if you have multiple sites
I have the following added to the Master Template of my first site and it works fine. Problem is that I have a second site that I started creating, but then trying to view the second site on an iPad, it renders the first site. How do I set the starting ID or page for my second site?
How to set the starting page of the iPhone.aspx if you have multiple sites
I have the following added to the Master Template of my first site and it works fine. Problem is that I have a second site that I started creating, but then trying to view the second site on an iPad, it renders the first site. How do I set the starting ID or page for my second site?
<!-- //iPhone redirect script -->
<script language=javascript>
if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))||(navigator.userAgent.match(/iPad/i)))
{
document.location.href='/iphone.aspx';
//document.location.href='<umbraco:Item field="pageID" runat="server" xslt="umbraco.library:Replace(umbraco.library:NiceUrl(umbraco.library:GetXmlNodeById({0})/ancestor-or-self::* [@level=1]/@id),'.aspx','/iphone.aspx')"></umbraco:Item>';
}
</script>
is working on a reply...