Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Using the Context module with Mobile Tools: create Mobile specific contexts

Parent Feed: 

Since we all love the Context module so much, I figured it was time to integrate Context with Mobile Tools and create a special Mobile Tools plugin.

The new dev version of Mobile Tools currently allows you to create a context based on device type (mobile or desktop) or device groups.

In order to use this functionality, just create a new context and search the context for mobile devices context
Mobile Tools context

This can be very practical to configure your regions depending on the device that is accessing your site!

By creating your own device detection plugin, you can define your own device groups.

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web