We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
has_children
Is your feature request related to a problem? Please describe.
We can find the categories which has parents, but not the ones which are parents.
A sample of the code I need:
{exp:channel:categories channel="news" style="nested" show_empty="no"} <a href="{path='channel/index'}">{category_name}</a> {if has_children} <button type="button" aria-haspopup="true" >children categories</button> {/if} {/exp:channel:categories}
Describe the solution you'd like
We could have a has_children conditional on exp:category_archive and exp:categories.
exp:category_archive
exp:categories
Describe alternatives you've considered
The only other solution is to use custom queries.
The text was updated successfully, but these errors were encountered:
Merge pull request #2274 from robsonsobral/feature/has_children
56c736c
Added has_children variable to category tags, #1726
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
We can find the categories which has parents, but not the ones which are parents.
A sample of the code I need:
Describe the solution you'd like
We could have a
has_children
conditional onexp:category_archive
andexp:categories
.Describe alternatives you've considered
The only other solution is to use custom queries.
The text was updated successfully, but these errors were encountered: