This module adds a new style plugin to views. It allows content to be displayed into a configurable numbers of columns. The items in the columns can be arranged horizontally (left to right) or vertically (top to bottom).
The columns are generated in the template layer as floating div's. Some basic styling is included for the columns.
So why is this usefull?
- Grid layout's don't work well with items of different height, columns do.
- Browser support for CSS3 columns is still lacking.
Similar modules
I've looked at / tested simular modules, but these all seem to use a javascript library, and don't offer the same simple layout and template options.
http://drupal.org/project/views_isotope
http://drupal.org/project/views_fluidgrid
http://drupal.org/project/views_fluid_grid
It is not a very complicated module, but I've have found many uses for it, and would like to share it with other Drupal users.
Code
Project page: http://drupal.org/sandbox/K3vin/2005410
GIT: git clone http://git.drupal.org/sandbox/K3vin/2005410.git views_columns
| Comment | File | Size | Author |
|---|---|---|---|
| Porsche 911 SC.png | 559.46 KB | k3vin_nl |
Comments
Comment #1
thamba commentedHi K3vin,
An automated review of your module returned the following:
I did a manual review of your module and found the following that can be fixed:
git clone http://git.drupal.org/sandbox/K3vin/2005410.git views_columns
Comment #2
k3vin_nl commentedThanks for noticing my typo in the git link! I've created the correct branch and removed the master branch.
I have added a README.txt to the module, fixed the code style issues (where possible: I don't think it is possible to fix the view method name errors) and fixed the PHP notice.
Comment #3
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxK3vin2005410git
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
k3vin_nl commentedFixed all of the code style issues, except:
I also cleaned up the template file by moving the generation of classes to the preprocess function.
Comment #5
k3vin_nl commentedFound a bug in the vertical display option.
Comment #6
k3vin_nl commentedFixed the array structure needed for vertical option.
Comment #7
_timpatrick commentedHi K3vin,
No errors were found with the automated coder review.
In addition, I manually tested the project:
Overall - works as expected. No errors when setting or configuring the columns in views, and tested using multiple content types and column layouts. Looking at the code, everything appears to be fine.
The branch has been changed to 7.x-1.x, README.txt file exists, and the git link changed as suggested by thamba.
Comment #8
_timpatrick commentedComment #9
kscheirerYou have a typo in your readme, "coluns" should be "columns". Can you explain a little more how this differs from the Grid layout - shouldn't that be able to achieve the same effect?
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #10
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #10.0
PA robot commentedCorrected link to git repo.