Skip to content

About

A filter to let you filter collections by mutiple get params

Topics

Resources

Stars

4 stars

Watchers

3 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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 }}

About

A filter to let you filter collections by mutiple get params

Topics

Resources

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages