RSS Feed MattJura.com
Register Login

Mobile sites on DotNetNuke

Mobile SkinWith current growth of smart mobile and tablet market you can not ignore the fact that your site should be mobile ready. Any business or organisation has to take into consideration how their website will look on mobile devices. When developing in DotNetNuke there are few different approaches you can take.

Apart from creating mobile specific site located on its own url (for example mobile.mysite.com or mysite.com/mobile) maybe you should consider using the same portal and content for mobile devices as for desktops, just change method of delivery depending on the device used to access the site. The advantage of this approach is that you only have to maintain one site / portal.

Here are available options and their advantages.

1. Create a mobile specific skin

You can create a mobile specific skin and implement it in a sub portal or just on mobile ready pages. This approach allows you full control over mobile content and look and feel. You could use a script or one of the available modules, for example EasyDNNmobileRedirect to redirect users to a specific site or url/pages based on the device they are using. The only drawback however is that you will have to maintain separate content for mobile devices.

2. Change the look and feel of the site using mobile style sheet

This can be achieved by loading a specific style sheet for mobile devices. The site would use the same skin and content, the layout would be controlled with CSS classes targeting specific devices. Most of mobile ready skins available on snowcovered use this method. This approach works very well for simple sites, with similar content across all pages and not too heavy page sizes. The drawback however is that all the html is loaded and there is no way of controlling what it includes except of hiding it from the display via CSS. This way the page may still have quite a large size as all html content is still there, including all controls, modules etc.

>> See an example of the static DNN page with sample content
>> Here is the same page with a mobile CSS applied

3. Use MobiNuke module

MobiNuke allows you to change your skin depending on the device used so you have full control over the layout and look and feel. It gives you ability of selecting the content you do want to display on the pc and or the mobile. So you can have on the same page content that is shown on all devices and the content that is pc or mobile specific.  This gives you an advantage as you can use the same content for all devices without having to maintain two different data sources or portals. The module gives a user ability to switch between the two versions as well.

>>See an example of the static DNN page with sample content
>> Here is the same page with a mobile skin implemented using MobiNuke and viewed using the built in emulator.

YSlow test for comparison using the same content.


Regular page
YSlow test results
The same page with CSS style sheet applied
YSlow test

Mobile skin implemented using MobiNuke
YSlow test

This blog is currently using MobiNuke and mobile ready skin.
I am interested in other solutions out there so do not hesitate to comment.

Comments

Matt
# Matt
Friday, November 18, 2011 7:52 PM
Small update

Since my post DNN 6.1 has been released and includes mobile redirection so you do not need to use third party modules if you want to create separate mobile pages.

The latest version of MobiNuke supports DNN6.
pranav sharma
# pranav sharma
Friday, February 17, 2012 2:20 PM
Hi Guys,

How can i add mobile google analytics code in my DNN mobile site .

The code is a aspx script.


Thanks
Pranav

Post Comment

Name (required)

Email (required)

Website

CAPTCHA image
Enter the code shown above:

Matt Jura

Matt is a Front End Developer, UI designer, DotNetNuke, E-commerce and SEO specialist, responsible for large number of websites, including e-commerce and online catalogues for domestic and international clients.
View my portfolio on Behance
View my profile on KLOUT
Add me to your circles
Follow me on Twitter


Matt Jura on Twitter
New project going strong http://t.co/xBA4Zx04 #DotNetNuke Posted 27 days ago
@eagleworx tanks, these are txt/HTML tokens, I was looking for skin object - see 40fingers skin on codeplex. Resolved with txt/html :) Posted 53 days ago
@MattsDailyTweet #DotNetNuke User Avatar <img src="[PROFILE:PHOTO]" /> pasted in the editor as raw text + token replacement on Posted 53 days ago
Little help required #DotNetNuke - what is a skin token for the UserPhoto (avatar) - dnn 6.1+ Posted 53 days ago
Finally in new office, nearly a week later than planned but worth it, do not try to call me on old number :-) Posted 58 days ago
@darthberne @presleysylwia no to ustalmy date I powod sie znajdzie, moze w przyszlym tygodniu Posted 67 days ago
@presleysylwia @darthberne to moze wymyslimy powod na spotkanie I zrealizujemy pomysl na wspolne piwko ? Posted 67 days ago
@darthberne @presleysylwia powoli do przodu, nie mam co narzekac, caly czas w tym samym miejscu i z usmiechem na buzce :) Posted 67 days ago

Follow me

WSI DNN services