Query in Blueprint problem

Hi,
I am trying to display the subpages in a blueprint in two columns based on the value of the “outofstock” field:

title: Books

columns:
  - width: 1/2
sections:
    instock:
        headline: In Stock
        extends: sections/books
        query: page.children.filterBy('outofstock','0')
        

  - width: 1/2
sections:
    instock:
        headline: Out of Stock
        extends: sections/books
        query: page.children.filterBy('outofstock','1')

However both columns just display ALL the subpages regardless of query.

Pages section don’t have a query option; you can only define a parent.

If you want to filter pages, you can use the https://github.com/rasteiner/k3-pagesdisplay-section plugin which gives you full control over what you want to show, at the expensive of not being able to sort pages or add new pages from this section.

I see. Thanks.

It is possible to filter the list of pages in a section by Status however, so as a work-around can I extend the status values somehow?

No, I don’t think so. The reason for the non-existing filters is that filtering caused too many issues.

You could create your own custom section plugin that allows filtering.