By trevorleenc on
ok, lets see if this makes sense :)
I've got a view, which comes out as a list, which is filtered by taxonomy terms for "items", and then one item type is selected.
the list gives me
item1
item2
item3
...
item9
item19
| item1 | item6 |
| item2 | item7 |
| item3 | item8 |
| item4 | item9 |
| item5 | item10 |
anyone know how I could do this?
thanks in advance :)
-TrevorLee
Comments
Views bonus
I think the easiest way for you to do that would be to use the Views Bonus Pack. You will also need the panels module.
Big Thanks
Thanks, I was looking for the same solution too.
ok, reasonably easy
ok, reasonably easy enough...not to mention I can find other uses for this, but what I found "workable" was the "bonus: grid view", however this builds a four column table with my items working like this:
| item01 | item02 | item03 | item04 |
| item05 | item06 | item07 | item08 |
| item09 | item10 | item11 | item12 |
is there someway anyone knows to change the order/format of this table so that it works as described above?
after a little searching...
I came across this gem:
http://drupal.org/node/144725
now..I've got it in two columns, nice :)
however the sorting still goes horizontally, and not vertically.
still playing with that....if anyone has any insight...
even easier
just put this in the argument php code:
$view->gridcount = 2;
I found this info in the modules section...nice...anyway, still nothing I see on the sorting...still looking though.
Splitting a View without Bonus Pack
Trevor,
Here's another example, using the views theming module.
This code goes in your template.php, and it will return two different DIVs, one with 1 - 5 and the other with 6 - 10, and then you can use CSS in your theme to float them next to one another. Hope this helps.
-- Steven 'Sven' Merrill
steven DOT merrill AT gmail DOT com
THANK YOU!
I have been going crazy trying to create a 2 column list like this, but i'm not too swift with php and a drupal n00b.
This post is a couple years old...will it still work with D6? I tried without success -- hoping i just need to tweak the function name to include the view name properly?
Views2 Grid Style
Views 2 now has the styling for a grid layout built in.
In your view, just go to style (underneath name & title), and select grid...plus it has some good configurable options.
close, but...
the grid layout leaves unsightly gaps if the content in an adjacent column is longer.
The views panels bonus pack is another close option, but, to complicate matters, my list is really 2 views displayed one after the other.
I started a new topic in my search for help. I detailed the issue there: http://drupal.org/node/716352 if you have a minute to check it out, i'd be so grateful!
CSS3 columns
CSS3 makes it possible to spread the content over columns now…
Awesome, but it breaks up teasers
This is great to learn... but it's limited. i.e. only supported for IE10+ ... and it doesn't keep teaser blocks together; it carries content over to the top of the next column. I tried "white-space:nowrap" on the teaser elements (a possible fix) but that made new problems ... forcing text to run over column boundaries.