You are here: Home → Forum Home → Free add-ons → Plugins → Thread
MX Mobile Detect is a small and simple plugin to detect if the template was requested by Mobile Device or not…
{exp:mobile_detect location="http://m.site.com/"}
{exp:mobile_detect location="http://site.com/" redirect="not_mobile"}
{exp:mobile_detect}
{if mobile}
Is mobile device
{/if}
{if not_mobile}
Is not mobile device
{/if}
{/exp:mobile_detect}
New tags (v. 2.3.0):
You can also to turned off plugin action with this
{exp:mobile_detect enable="off" location="http://site.com/"}
turned on mobile redirect
{exp:mobile_detect enable="on" location="http://site.com/"}
New parameter (v. 2.4.0):
client (optional) - the string which you want to find in HTTP_USER_AGENT. It could be the OS name/version, Browser name etc.. For example you can redirect all users with Internet Explorer 6.0 to specific page.
{exp:mobile_detect location="http://site.com/please-update-your-ie.html" client="MSIE 6."}
NOTE: this option is overwriting the mobile detect functionality.