It would be super-hot if I could determine panels variants based on browser. I need to implement this for a project now. Expect a patch!

CommentFileSizeAuthor
#2 mobile_tools_panels.patch851 bytesjoshk
#2 plugins.tgz1.11 KBjoshk
#1 mobile_tools.zip23.34 KBjoshk

Comments

joshk’s picture

StatusFileSize
new23.34 KB

Wow, this was really surprisingly easy. Ctools API FTW!

I'll roll up a patch tonight, but here's a quick tarball for any interested parties.

joshk’s picture

StatusFileSize
new1.11 KB
new851 bytes

Update. Here's a patch and a tarball of just the new "plugins" directory.

twom’s picture

Patch committed. Thank you for adding this nice feature to the module!!
I have changed mobile tools a bit more so that third party modules can add more device categories...
(so plugin for a plugin ?)

twom’s picture

Status: Active » Fixed
joshk’s picture

Question:

Currently the access check is on the device groups that I have : ('iphone', 'ipod', 'android', 'opera mini', 'blackberry'). This is somewhat a weak point in Mobile Tools, because there are not to many device categories, and device categorization is a difficult point.

Othere categorizations are:

mobile / not mobile
screen sizes (320 x 480, 480 x320, 240x320, 320x240, ...)

Do you see any relevance for your use case in these contexts?

Would it be possible to extend the plugin later with these categorizations (mobile / not mobile could be a relevant one)

Yes. I totally agree. I will grab a dev version and see what I can do in terms of permitting more categories. I think the more the merrier for the moment.

twom’s picture

Ok, thanks...
I have updated the dev version to make it more stable (;))...

Concerning adding more device categories... The solution I am looking at is using modules like http://drupal.org/project/wurfl that can provide this information...
Wurfl is also one of these modules where I have some optimizations ready on my pc, but need additional testing and cleanup to really be able to use it :)

Let me know if you need help with this, or want to exchange thoughts. I could implement these things, but currently I lack the time...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.