There is one more step to do.
You need to change the template of the page. The templates in Sitefinity contain the controls that you add through the edit template interface.
In order to do this you will Sitefinity 3.6 Hotfix. If you are using older version please upgrade to Sitefinity 3.6 Hotfix.
I am attaching the sample code you can use in order to change the theme, master page and the template dynamically for mobile devices. I changed only the class extending the InternalPage
1. Put the DetectingPage.cs
(attached in this post)
to your site App_Code
2. Edit the file ~[your site]/Sitefinity/cmsentrypoint.aspx
as shown below:
|<%@ Page Inherits="Telerik.Cms.Web.DetectingPage, App_Code"
| MasterPageFile="~/Sitefinity/Dummy.master" %>
3. Edit the DetectingPage.cs - set the template name of you mobile master page and add the condition which checks if the client is a mobile device:
|protected bool CheckIfDeviceIsMobile()
| //return true if device is mobile
| // false otherwise
|// here set the name of your template (you can see it at Pages->Templates in admin // menu
|public const string TemplateNameForMobile = "Mobile";
I hope this information will help you.
the Telerik team
, the state of the art learning tool for Telerik products.