Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eric Siebeneck 26 posts 46 karma points
    Dec 22, 2011 @ 15:34
    Eric Siebeneck
    0

    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>

Please Sign in or register to post replies

Write your reply to:

Draft