Drupal 6.x, Views, and Multiple ULs Per-Single View?

Specifics:

  • Drupal 6.x
  • Views 6.x-2.16

Problem:
I’m trying to use a View to output multiple columns and organized by column instead of by row (i.e. - ordering each output vertically where at the end of each column, a new column is generated and populated until it gets to the end of that column, and so on.) I thought I had this working when I told the view to vertically-align, but as soon as I applied some floating CSS to the list-items, the order of each field appeared to be horizontally-aligned again.

Long story short, I need the following layout with my view:
[TABLE=“width: 500”]
[TR]
[TD]Column 1
[/TD]
[TD]Column 2
[/TD]
[TD]Column 3
[/TD]
[TD]Column 4
[/TD]
[/TR]
[TR]
[TD]Field Item 1
[/TD]
[TD]Field Item 10
[/TD]
[TD]Field Item 19
[/TD]
[TD]Field Item 28
[/TD]
[/TR]
[TR]
[TD]Field Item 2
[/TD]
[TD]Field Item 11
[/TD]
[TD]Field Item 20
[/TD]
[TD]Field Item 29
[/TD]
[/TR]
[TR]
[TD]Field Item 3
[/TD]
[TD]Field Item 12
[/TD]
[TD]Field Item 21
[/TD]
[TD]Field Item 30
[/TD]
[/TR]
[TR]
[TD]Field Item 4
[/TD]
[TD]Field Item 13
[/TD]
[TD]Field Item 22
[/TD]
[TD]Field Item 31
[/TD]
[/TR]
[TR]
[TD]Field Item 5
[/TD]
[TD]Field Item 14
[/TD]
[TD]Field Item 23
[/TD]
[TD]Field Item 32
[/TD]
[/TR]
[TR]
[TD]Field Item 6
[/TD]
[TD]Field Item 15
[/TD]
[TD]Field Item 24
[/TD]
[TD]Field Item 33
[/TD]
[/TR]
[TR]
[TD]Field Item 7
[/TD]
[TD]Field Item 16
[/TD]
[TD]Field Item 25
[/TD]
[TD]Field Item 34
[/TD]
[/TR]
[TR]
[TD]Field Item 8
[/TD]
[TD]Field Item 17
[/TD]
[TD]Field Item 26
[/TD]
[TD]Field Item 35
[/TD]
[/TR]
[TR]
[TD]Field Item 9
[/TD]
[TD]Field Item 18
[/TD]
[TD]Field Item 27
[/TD]
[TD]Field Item 36
[/TD]
[/TR]
[/TABLE]
[< Pager Here >]

Would anyone happen to know how to achieve something like this?
So far, I’m at a loss.

You’re using the Grid Style and then grouping under a taxonomy term or something right? …And you’ve got your Grid Settings set to vertical. Have you ticked the checkbox for “Fill up single line”?

I’ve never done a Grid with columns but that’s how I would expect to do it. I always use grid and fill the table left to right.

Otherwise I might try something fancy with PHP where I set the style to unordered list and then at a certain count I wrap my ouput in a “column” div and then float them left.

Could you provide the actual context of that a column and “field item x”. Without that my guess would be to use CSS tables. Views outputs enough extra, none-semantic garbage which should make it possible to style the output as tables using CSS.

I revisited the Grid display and removed the group-by parm. Seems to be working now (not sure if I did something else between point ‘A’ and ‘B’ that I’m forgetting but so far, it’s looking and behaving perfectly).

As for the context of this, it basically boiled down to rearranging how a View was outputting links to our Vendor pages. The page links were being output from left-to-right, row-by-row. I needed these links to instead be generated from top-to-bottom, column-by-column. Making those tweaks above seemed to do the trick. I’m not sure why I was unable to make this work the other day–I think I might’ve been in need for sleep or something, but in any event, it seems to be working flawlessly now. :slight_smile:

Thanks guys / gals. I know I’m not the best at explaining these things sometimes, especially when I’m running on fumes.

Glad you got it sorted out ok. I’ll look you up if I have the same trouble in the future.

Cheers,
Andrew