How to get ancestors of an entry by slug in graphQL? #8013
-
I'm using a structure with nesting several levels deep. For the breadcrumbs I want to get a path (array of ancestors) to the current entry, based on the "slug". In Twig there seems a way with
PS. I found some proposed solutions with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We’ve actually just added the ability to fetch entries’ ancestors for Craft 3.7. To get on the 3.7 branch, change your |
Beta Was this translation helpful? Give feedback.
We’ve actually just added the ability to fetch entries’ ancestors for Craft 3.7.
To get on the 3.7 branch, change your
craftcms/cms
requirement in composer.json to"3.7.x-dev as 3.7.0-alpha"
and runcomposer update
.