Sitefinity and mobile web site development
Hello All,
We are using Sitefinity 3.7 SP3 version for our projects. We would like to implement mobile device detection for our web sites. Do we have any resources on implementing WURFL or 51 Degrees Mobi Foundation for Sitefinity sites? After detecting a device to be mobile device we are planning to switch the themes for our Master pages on the OnPreInit event. Could you please provide us any suggestions or if you could please point us to the available resources that would be great. I have already looked at the documentation for WURFL and 51 Degree Mobi Foundation, but I am looking something specific to Sitefinity.
Thank you,
Hi San,
You can create a custom class that inherits from IternalPage and override GetTheme method. There you can set the theme at runtime. Please check this post
www.sitefinity.com/.../sitefinity-amp-accessibility.aspx
All the best,
Ivan Dimitrov
the Telerik team
Hello Ivan,
Thank you for your prompt response. I am looking for implementing mobile device detection for our Sitefinity sites. Do you have any resources available for implementing WURFL or any other mobile device detection libraries? Or do you guys recommend any specific one for detection?
Regards,
San.
Hello San,
I have not researched about how the request could be detected, but I am sure that this is something common and if you google for this you will find a solution.
All the best,
Ivan Dimitrov
the Telerik team
Were you able to figure out how to use the detection from 51 Degrees? I have it configured and the detection seems to work on my mobile devices, but it breaks functionality for the Sitefinity back-end.
Hello Stacey,
We did not use 51 degree at the end as we did not want to mess up anything with the dll's and we were worried that it would break the back end. So, instead we used a combination of user agent sniffing and also another method for mobile detection.
San,
Could I get more information on how you implemented mobile detection?
Kevin
Hello Kevin,
We are just using user agent sniffing and redirecting a user to a mobile site. The other mobile detection libraries out there did not fit our needs so we just use user agent sniffing and switch themes. But, I believe you can use 51 degree as mentioned by Stacey below, I never got a chance to get to it.
Hi San,
Thnak you for sharing your approach with the community, we really appreciate it.
I Just wnated to rpovide everyone with a quick follow up, that Sitefinity already offers an out of the box mobile solution for you - we have first introduced it with our Sitefinity 5.0 release.
You can find more information available on our Responsive Design, Mobile Apps or Mobile Websites: You Pick the Strategy, We Deliver the Platform page form the Sitefinity website.
Kind regards,
Boyan Barnev
the Telerik team