Project:Views Bonus Pack
Version:6.x-1.0-beta4
Component:Bonus Panel Views
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

I'd like to stop the alternating of data between columns.

Instead of

a b
c d
e f

I'd like to see:

a d
b e
c f

Is there a simply way to do this?

Comments

#1

Bumping and subscribing this.

It seems like there should be a simple (if not necessarily elegant) solution to this problem, unless there's a fundamental deficiency with the way that Panels is built, and I'm surprised that no one has bothered to develop or post it.

Looking at the views_bonus_panels module, it looks to me that this is where the horizontal population of the columns happens:

  // iterate over remaining rows and fill columns.
  foreach ($rows as $offset => $row) {
    $r = $offset % $columns;
    $content[$col_names[$r]] .= $row;
  }

So if this is the spot where things get done horizontally, how would one go about hacking this iteration to populate the columns vertically rather than horizontally? (it should eventually be cleaned up and made into a user-selectable option, but right now I'm most interested in finding the basic solution)

Please?

#2

Status:active» closed (won't fix)

I'd rather not change anything about the current views bonus panels code. the views context can do everything and more and is much better suited to this sort of thing.