Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.08 KB

readme.md

File metadata and controls

43 lines (34 loc) · 1.08 KB

Getdem (get dem dere entries wid all dos taxonomies)

Requirement: Statamic v2.x
Version: 1.0.0

What is Getdem?

Lets you filter collection entries by multiple taxonomies as get params that may or may not exist.

Installation

Rename the folder Getdem and copy it to your site/addons folder

URL format

http://example.com/blog?taxonomy1=a&taxonomy2=b&taxonomy3=c

Example match any term (default)

{{ collection from="collection-handel" filter="getdem" params="taxonomy1|taxonomy2|taxonomy3" match="any" }}
  {{ partial:blog/preview }}
{{ /collection }}

Example all terms must match

{{ collection from="collection-handel" filter="getdem" params="taxonomy1|taxonomy2|taxonomy3" match="all" }}
  {{ partial:blog/preview }}
{{ /collection }}

Specify match paramater in url

URL format

http://example.com/blog?taxonomy1=a&taxonomy2=b&taxonomy3=c&match=all

Filter format

{{ collection from="collection-handel" filter="getdem" params="taxonomy1|taxonomy2|taxonomy3" :match="get:match" }}
  {{ partial:blog/preview }}
{{ /collection }}