The attached patch is a bit of a hack, but it allows arg handling code to change the number of columns the grid table is rendered with. For example, it could be used to set up a view that display a 3x3 grid in 'block' mode but a 9x9 grid in 'page' mode.

Comments

Anonymous’s picture

Fantastic !
Exactly what' I've been looking for :)

Thank you.

Anonymous’s picture

Just a question please : where and how do we specify the width of the grid for eg. 3x3 ?

eaton’s picture

You'd have to specify it in the 'argument handler' portion of the view.

mfredrickson’s picture

StatusFileSize
new1.03 KB

The patch has a slight error: the line that reads

$cols = $views->gridcount ? $views->gridcount : 4; should be
$cols = $view->gridcount ? $view->gridcount : 4;

Rerolled and attached.

merlinofchaos’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
patrickfgoddard’s picture

For anyone else stumped on how to take advantage of this, in the "Argument Handing Code" box put:

$view->gridcount = 3;

or whatever you count you want.