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

FR: Add "hasDescendants" in Category Query Params #2786

Closed
hongc-cc opened this issue Apr 22, 2018 · 1 comment
Closed

FR: Add "hasDescendants" in Category Query Params #2786

hongc-cc opened this issue Apr 22, 2018 · 1 comment
Assignees
Labels
enhancement improvements to existing features site development 👩‍💻 features related to website/API development

Comments

@hongc-cc
Copy link

Since category branches can vary a lot, "level" is not going to work on most of the case.
Allow the following will be saving tons of time & queries:

{% set categories = craft.categories({hasDescendants: false}).all() %}

@brandonkelly brandonkelly added enhancement improvements to existing features site development 👩‍💻 features related to website/API development labels Apr 23, 2018
@brandonkelly brandonkelly self-assigned this Apr 23, 2018
@brandonkelly
Copy link
Member

Added for the next release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features site development 👩‍💻 features related to website/API development
Projects
None yet
Development

No branches or pull requests

2 participants