Closed (fixed)
Project:
Mobile Tools
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Oct 2009 at 20:26 UTC
Updated:
4 Nov 2009 at 03:50 UTC
Jump to comment: Most recent file
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!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mobile_tools_panels.patch | 851 bytes | joshk |
| #2 | plugins.tgz | 1.11 KB | joshk |
| #1 | mobile_tools.zip | 23.34 KB | joshk |
Comments
Comment #1
joshk commentedWow, 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.
Comment #2
joshk commentedUpdate. Here's a patch and a tarball of just the new "plugins" directory.
Comment #3
twom commentedPatch 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 ?)
Comment #4
twom commentedComment #5
joshk commentedQuestion:
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.
Comment #6
twom commentedOk, 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...