Skip to content

mikemartin/TaxonomySlugFilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Taxonomy Slug Filter Statamic 2.0

Custom filter to manually filter a collection by taxonomy slug

Installation

  1. Copy over the files into the site folder.

Usage

If you're on a taxonomy uri, call the filter and pass in the entry field for the taxonomy:

{{ collection filter="taxonomy_slug" field="tags" }}
   ...
{{ /collection }}

On any other URI, pass in the taxonomy slug you need as well:

{{ collection:blog filter="taxonomy_slug" slug="coffee" field="tags" }}
   ...
{{ /collection }}

About

Customer filter to manually filter a collection by taxonomy slug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages