ContentHelperQuery::orderDownColumns
Method to order the intro articles array for ordering down the columns instead of across.
The layout always lays the introtext articles out across columns. Array is reordered so that, when articles are displayed in index order across columns in the layout, the result is that the desired article ordering is achieved down the columns.
Signature
public function orderDownColumns(array&
$articles,
[integer
$numColumns = 1] )
Parameters
-
$articles
- Array of intro text articles
-
$numColumns
- Number of columns in the layout
Returns
- array
- Reordered array to achieve desired ordering down columns