Skip to content
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

Merged
merged 4 commits into from
Mar 26, 2020
Merged

EZP-31107: Built-in Query Types #972

merged 4 commits into from
Mar 26, 2020

Conversation

DominikaK
Copy link
Contributor

Question Answer
JIRA Ticket https://jira.ez.no/browse/EZP-31107
Versions master (3.0)

Note: Support for custom Sort Clauses as described in ezsystems/ezpublish-kernel#2938 to be added later.

@DominikaK DominikaK force-pushed the built-in-query-types branch from 1a9b0b0 to 8781134 Compare March 23, 2020 08:27
@DominikaK DominikaK requested a review from adamwojs March 23, 2020 08:28
docs/guide/controllers.md Outdated Show resolved Hide resolved
docs/guide/controllers.md Outdated Show resolved Hide resolved
docs/guide/controllers.md Outdated Show resolved Hide resolved
docs/guide/controllers.md Outdated Show resolved Hide resolved
docs/guide/controllers.md Outdated Show resolved Hide resolved
docs/guide/controllers.md Outdated Show resolved Hide resolved
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:
Copy link
Contributor

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.

}
```

In the configuration, use the name of the Query Types as defined in `getName`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In what file?

Copy link
Contributor Author

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.

docs/guide/displaying_children_of_a_content_item.md Outdated Show resolved Hide resolved
docs/guide/templates.md Outdated Show resolved Hide resolved
DominikaK and others added 2 commits March 26, 2020 10:11
Co-Authored-By: MagdalenaZuba <35031941+MagdalenaZuba@users.noreply.github.com>
@DominikaK DominikaK merged commit c16408c into master Mar 26, 2020
DominikaK pushed a commit that referenced this pull request Mar 26, 2020
@DominikaK DominikaK deleted the built-in-query-types branch March 26, 2020 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants