Copied to clipboard

Flag this post as spam?

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


  • Johan 38 posts 88 karma points
    Jul 05, 2013 @ 14:34
    Johan
    0

    Templating when building adding a mobil site to existing website

    I have now 2 sites inside Umbraco:

    • www.mydomain.com
    • mobile.mydomain.com
    That is fine but when somebody is searching for my product in Google they find one url in the Google SERP but I now have this product in 2 different places in umbraco:
    • www.mydomain.com/myproductpage1/
    • mobile.mydomain.com/myproductpage1/
    I'd like to build umbraco so that I only have one url www.mydomain.com/myproductpage1/ capable to render content for laptops and mobile devices depending on which device that are visiting.
    How would I solve this in Umbraco? I need to have the capability of 2 templates on some nodes in the Umbraco treeview
    How can I select which template to load programatically?

  • Dane Garcia 9 posts 70 karma points
    Jul 06, 2013 @ 06:24
    Dane Garcia
    0

    I would use code to detect the mobile browsers, you can get code from here.  Then you can use a redirect to a mobile version of the page. You can use Response.Redirect() to take care of this or you can use javascript document.navigate().

  • Dane Garcia 9 posts 70 karma points
    Jul 06, 2013 @ 06:26
Please Sign in or register to post replies

Write your reply to:

Draft