Question

I am trying to get a drupal 6 view to display in a column format rather than rows. Basically I want to group my pictures/video by taxonomy and display them in a table. Similar to what I have below. I tried enabling grouping with a grid layout but that did not seem to do it.

Cows Horses Dogs Cats
Picture Picture Picture Picture
Picture Picture Picture Picture
Picture Picture Picture Picture
Picture Picture Picture Picture
Picture Picture Picture Picture

Hope this makes sense.

Was it helpful?

Solution

If you're using Views 2, one way would be to create a table view, then use a custom views-view-your-view-name.tpl.php file to output the columns and rows vertically rather than horizontally. That template override gets the rows and columns as arrays of objects that you can output however you'd like.

OTHER TIPS

I don't think Panels are good answer to this question, the have different purpose.

I would maybe use a view which is sorted by custom parameter in URL, set output as list (so it is li div.title Title, div.date Date, div image Image /li etc), and style the list with css (.li has fixed size and float:left;).

Then I would a "sort by" selector before view (there is a field for HTML that will be repeated before any view output - [a href="?sort=Name"]Sort by name[/a])

You might be able to use multiple views and panels. Check out the panels module

The Flipped Table add-on is part of the Views Hacks module.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top