views:

2225

answers:

5

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.

A: 

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

Rimian
Is Panels ready for Drupal 6 yet?
Brian G
Yes I read this answer (18 months later) and thought it was off topic. Then I realised it was me. I think I might vote myself down here...
Rimian
+6  A: 

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.

Eaton
Eaton's plan here is the best one. Alternatively you could roll your own style plugin for Views.
David Wees
+1  A: 

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])

Tomáš Kafka
A: 

Hello all, dreadfully sorry for such a faux pas - but I apparently can't post a comment without some credibility already - and I have none!

It was a question for Eaton regarding his solution - could you provide more advice on how to customise the PHP file in question to make the column view?

Thanks

A: 

Check this article - Table view with rows/columns switched(https://drupal.org/node/174578)

Murali

related questions