-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZP-31107: Built-in Query Types #972
Conversation
1a9b0b0
to
8781134
Compare
docs/guide/controllers.md
Outdated
Beyond the built-in Query Types, you can create your own. | ||
|
||
For example, this Query Type returns a Query that searches for the 10 last published Content items, ordered by reverse publishing date. | ||
It accepts an optional `type` parameter that can be set to a Content Type identifier: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we need an example name and where to add it.
docs/guide/controllers.md
Outdated
} | ||
``` | ||
|
||
In the configuration, use the name of the Query Types as defined in `getName`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be different files (ezplatform.yaml by default, but not necessarily), so I clarified that it's content view config.
Co-Authored-By: MagdalenaZuba <35031941+MagdalenaZuba@users.noreply.github.com>
Note: Support for custom Sort Clauses as described in ezsystems/ezpublish-kernel#2938 to be added later.