Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Can't get filterBy to work #7

Closed
jenstornell opened this issue Jun 30, 2016 · 2 comments
Closed

Can't get filterBy to work #7

jenstornell opened this issue Jun 30, 2016 · 2 comments
Labels

Comments

@jenstornell
Copy link

Is this not correct in the blueprint?

myfield:
    type:  subpagelist
    filter:
      filterBy:
        filterMethod: category
        filterValue: somevalue
@flokosiol
Copy link
Owner

I need to add an example to the README and with the naming I did not make the best choice 👎

It works like https://getkirby.com/docs/cheatsheet/pages/filter-by

$key = filterBy
$operator = filterMethod
$value = filterValue

In the end it should look like this …

myfield:
    type:  subpagelist
    filter:
      filterBy: category
      filterMethod: ==
      filterValue: somevalue

@jenstornell
Copy link
Author

I needed an even more complex solution so I ended with using my Fragment field for it. I bet this will come in handy when I need this field in another situation. But I agree, an example would be great in the readme.md or so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants