getgrav / grav-plugin-relatedpages

Grav RelatedPages Plugin
http://getgrav.org
MIT License
17 stars 7 forks source link

@taxonomy filter on boolean key doesn't appear to work #1

Closed jkelleher closed 9 years ago

jkelleher commented 9 years ago

Using this (excerpt) relatedpages.yaml:

filter:                         # filter a configurable collection of pages to compare
    items:
       @taxonomy: aproject: true            # supports @self, @page, and @taxonomy collections
    order:
        by: date                # order type by default
        dir: desc               # order direction

... it doesn't appear to pull back pages with a taxonomy key/value of aproject: true. Related: Using taxonomy.findTaxonomy({'aproject':true}) works.

mahagr commented 9 years ago

Doesn't work because of YAML syntax doesn't support that. Basically it thinks that you have:

@taxonomy: "aproject: true"

You may use this instead:

filter:
  items:
    @taxonomy: 
      aproject: true
rhukster commented 9 years ago

I think this is resolved, closing