Download the PHP package fusionary/groupby-craft without Composer
On this page you can find all versions of the php package fusionary/groupby-craft. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fusionary/groupby-craft
More information about fusionary/groupby-craft
Files in fusionary/groupby-craft
Download fusionary/groupby-craft
More information about fusionary/groupby-craft
Files in fusionary/groupby-craft
Vendor fusionary
Package groupby-craft
Short Description A Craft plugin (Twig filter) for grouping entries.
License
Package groupby-craft
Short Description A Craft plugin (Twig filter) for grouping entries.
License
Please rate this library. Is it a good library?
Informations about the package groupby-craft
groupBy
A Craft plugin (Twig filter) for grouping entries.
Note: I have no plan to update this plugin for Craft 3. See https://github.com/sjelfull/craft3-collections, which can do the same thing, but also much more.
Usage
param 1: Attribute to group by, in dot notationparam 2: Group un-grouped entries by a key. Defaults tofalse, meaning un-grouped items are removed. These entries are always added to the end of the returned array.
Examples
In it's simplest form, the groupBy filter works like Craft's native group filter.
However, groupBy can also group by nested objects:
And you can even get really crazy if you want:
Discussion
All versions of groupby-craft with dependencies
PHP Build Version
Package Version
Requires
composer/installers Version
~1.0
The package fusionary/groupby-craft contains the following files
Loading the files please wait ...