Categories:
Author:
Current version:
0.4
About It:
Get it:
Rate it:
Flag it:
pro_mobile
Option 1:
<txp:pro_mobile>
// Show mobile content here
</txp:pro_mobile>
Option 2:
Use as an if/else:
<txp:pro_mobile>
// Mobile content here
<txp:else />
// Regular content here
</txp:pro_mobile>
Option 3:
Define custom content per browser
<txp:pro_if_mobile name="iPad" >
You have an iPad lucky thing!
</txp:pro_if_mobile>
Names available for you to use include:
- iphone
- ipod
- ipad
- aspen
- nexus
- dream
- android
- cupcake
- blackberry9500
- blackberry9530
- opera mini
- opera mobi
- webos
- incognito
- webmate
Option 4:
Feel free to wrap tags!
<txp:pro_mobile>
Welcome mobile user!
<txp:pro_if_mobile name="opera mini">
You use opera mini, great browser!
</txp:pro_if_mobile>
<txp:pro_if_mobile name="android">
You use android, great browser!
</txp:pro_if_mobile>
<txp:else />
// normal content
</txp:pro_mobile>
To detect via resolution I recommend css media queries. You don’t need a plugin at all for that!
Keywords/tags:
Initially released:
22/07/2011Posted here:
21 Apr 2012Article modified:
12 Sep 2012









If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.