Mobile Detection

Creator: Zuriel Andrusyshyn (zurie)

Need help installing this extra?

About Mobile Detection

This plugin combines browser detection and a URL-parameter override to show/hide portions of any template delineated by <mobile> and <standard> tags.

Without modifications, the user's browser is detected *once* and a cookie is set to store the value; if a mobile browser is detected, <standard> portions of the template will be deleted, leaving only <mobile> portions.  URL parameters can override the results of the browser detection ie:  http://www.yoursite.com?browser=full  (will force a mobile phone to display the full desktop version).  and can be reversed.  Detection is also done site wide with a stored cookie or you have the ability to detect individual pages with browser=detect overrides.

Information

Released
May 30, 2011

Supported Database
MySQL

License
GPLv2

Supported Versions
2.0 - <2.2

Downloads
6,960

Instructions

Install the package from MODX internal package manager.  

New in 2.1.0-pl1

2.1.0-pl 

  • Added mdetect.php automatically
  • updated package for 2.1 (changed $modx->resource->_output instead of $modx->documentOutput)

Current releases

2.1.0-pl1
View | Download
May 30, 2011
2.0 - <2.2