Using Views Responsive Grid in Drupal 7

vrg 0

Using Views Responsive Grid in Drupal 7

In response to Mark's post, Converting Views List Into Responsive Stacked Columns, we've teamed up to create a module for just this sort of thing. Views Responsive Grid is a views display format plugin designed to give you the proper HTML structure for creating CSS grids. Although still a sandbox project, we're working to get it through the application queue quickly.

Views Responsive Grid gives you all of the functionality of the default grid style, but without all of the ugly tables. It also gives the user the ability to utilize custom classes already in their theme to properly layout the columns. Responsive themes will allow grid items to stack(like a list) according to the proper sort order set inside the view.

How to Use

After downloading and enabling the module, create a new view with the responsive grid display format. Specify the number of columns, and the alignment of the grid.

  • Horizontal grids denote how we read, left to right, top to bottom.
  • Vertical grids are more closely related to how you see a newspaper laid out; top to bottom, left to right.

Lastly, you'll need to understand that the the module won't provide any default styling to the grid. You may think it's not working - this is by design. In order for the columns to work, you'll need to specify the class name of your columns. For example, if your theme utilizes a grid, like Twitter Bootstrap does, you would specify "col-sm-3" as the column class (making sure to use the correct span size). This will make sure your column adheres to the grid in your Bootstrap based theme.

Try it out, and tell us what you think in the comments below!

UPDATE: This is no longer a sandbox project and can be found here http://drupal.org/project/views_responsive_grid.

Related Posts

Converting Views List Into Responsive Stacked Columns

Mark Carver
Read more

Responsible Responsive Drupal Themes

Mark Carver
Read more

520 Grid System for Facebook Tabs

Litany Brown
Read more

Best Drupal 7 Responsive Themes

Kayla Wren
Read more

Responsive Drupal Theming, Done the Right Way... At Least For Now Anyway

Mark Carver
Read more

Link Taxonomy Terms to Custom Views in Drupal

Dustin Currie
Read more