The Joomla! Extensions Directory ™


Mobile Content Switch Plugin

The Mobile Content Switch Plugin is a free Joomla Plugin that will enable you to hide or show content depending if the user is visiting your site from an Apple iPad, iPhone, iPod Touch, and many other mobile devices, or not. Great to render a quicktime embed for iPads, and a Flash embed code for non iPad devices, or similar uses.

Version 2.1 – August 11, 2011

Support for Joomla 1.6 (Thanks to Louis Carlos)
Added {mobile}{/mobile} {nomobile}{/nomobile} parameters (Thanks to @Mano)


Version 1.7 - January 29, 2010: Added support for Android, Palm, Blackbery, Symbian, Palm, and Sony Ericsson


Version 1.6 now, resolving an iPhone compatibility issue.

========================


Usage:

Version 2.1 only
* {mobile}Display content to visitors on one of the mobile devices below.{/mobile}
* {momobile}Display content to visitors NOT on amy of the mobile devices below.{/nomobile}
:::::::::::::::::::::::::::::::::

* {ipad}Display content to visitors ON an iPad.{/ipad}
* {noipad}Display content to visitors NOT on an iPad{/noipad}
* {iphone}Display content to visitors ON an iPhone or iPod touch.{/iphone}
* {noiphone}Display content to visitors NOT on an iPhone or iPod touch.{/noiphone}
* {applemobile}Display content to visitors in EITHER an iPad, an iPod, or an iPhone{/applemobile}
* {noapplemobile}Display content to visitors in NEITHER an iPad, an iPod, or an iPhone{/applemobile}
* {android}Display content to visitors on an Android device{/android}
* {blackberry}Display content to visitors on an BlackBerry{/blackberry}
* {palm}Display content to visitors on an PalmOS device{/palm}
* {sonyericsson}Display content to visitors on an SonyEricsson (Nokia) device{/sonyericsson}
* {symbian}Display content to visitors on an SymbianOS device{/symbian}


Important Notes: (updated June 6, 2010)

* Set Global Configuration > Systems > Cache = no for the plugin to work, otherwise what you will see is the cached version of the article, which may have been generated by a device other than the one you are viewing the article on.
* If you have caching enabled, and your content is in a module, make sure to set the module not to be cached (advanced parameters > caching)
* If you use the plugin in a module, make sure that the module is capable of running plugins (such as mod_placehere)

Report

2012-01-04
Reviews: 11
this plugin is so simple but awesome at the same time! It works just out of the box and solves so many troubles wehn developind a iphone version of a website! Thank you for this "little" but GREAT plugin!
2011-12-28
Reviews: 9
This is the plugin I've been looking for. One of the big problems with joomla right now is that there wasn't any way to serve different content for mobile devices than for desktops. Once you were done styling for the mobile, what if the images or the content was too large to fit on the phone? There is no way in the joomla core to serve up different content for mobile until I found this plugin. It is so simple to use and does exactly what I need it to do. It allows you to serve up different content specifically made for the small mobile screens while keeping the desktop content intact. Thank you very much for writing this and I really hope you'll port it to the newer versions of Joomla as they come along. It is a really needed feature.
2011-08-22
Reviews: 3
I have installed this plugin and have changed my articles by merging the "apple" pages with the "noapple" pages.
It is working fine. You just have to remember to set the cache off and to empty it.
Jossi, the developper answers quickly and is very helpful.
2011-07-25
Reviews: 4
This solved (like to many people like me) the problem to show a flash content for some users and an alternative html content for mobile users.

Thanks
2011-05-26
Reviews: 33
Wonderful plugin. Overcame all my apple - flash issues. **kisses this plugin
2011-04-01
Reviews: 3
Very good plugin, very easy to use. Detects my android device perfectly.
Maybe it would be nice if we could group several devices in one tag, like {noapplemobile,noandroid} for example.
Anyway, I highly recommend, if you're looking for a very simple way to display or not a piece of content depending on the device.
2011-01-25
Reviews: 1
I would really like to see Android and Blackberry browser detections - that would make this a really useful mobile tool.

Thanks for the good work!
Owner's reply

New version with support for many more mobile devices is now available!

2010-12-25
Reviews: 13
this is excellent plug in, if it would recognize more mobile devices, it would be priceless, i'd even pay to get it.
Owner's reply

It ill be quite easy to add more devices. What other mobile devices you are interested in?

2010-09-01
Reviews: 1
Worked great! I was able to use this to move the iPad's and iPhones away from a flash gallery to an error message or to an HTML gallery! Extremely easy to use!
2010-06-17
Reviews: 4
This plugin is essential for video-based web site.
It's useful to show/hidden part of the article/module code depending on device used to read the page.
Excellent support from the developer too!