Hi you all,

I've been working with a Drupal 7 version that has arised from another issue: http://drupal.org/node/920990. I would like to have been able to mark the version with a somewhat "7.x-1.x-dev", but I'm afraid it's still no there :-)

The point is that I'm trying to find a mobile solution based on "Context" using "Context Mobile Detect" and "Context Reaction: theme". Initially both Context-sub-modules worked fine on each one, but I could not get both to work toghether. I read on some other thread that "Context Reaction: theme" was only capable to work with "path" conditions. Well, to make it short, studing other context sub modules code I've catch a way to make "Context Reaction: theme" aware of mobile platforms with the help of "Context Mobile Detect".

I'm not a coder but I've tried to create a patch ready to use, I hope it helps. It obviously works on the mentioned version of the module for Drupal 7. I've made some test with that change on one site I'm developing right now and which required that kind of solution and by now it looks promising, but I would be very interested if better coders could tell me if there is a better way to do it or something else that could be interesting to take care of.

Obviously if it works it would be great that the maintainer of this module could release the version for Drupal 7 since it provides a good set of solutions.

Thanks.

Comments

Michsk’s picture

Test http://drupal.org/node/920990#comment-7294474 to see if it works for you