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?
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().
Templating when building adding a mobil site to existing website
I have now 2 sites inside Umbraco:
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().
Also take a look at this umbraco forum topic: http://our.umbraco.org/forum/templating/templates-and-document-types/9461-Dynamic-Node-Template
is working on a reply...