-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Building slugs that level in to account #355
Comments
So long as I understand correctly, this isn't something that's possible or going to be incorporated. Navigation doesn't define the URL or slug of element nodes, that's defined by the element. This is so that your Navigation can define a structure that's independent of the elements you pick. So you might have your entries in a structure with parent/child relationships (which affect the In your example, with Hope that makes sense? |
Question
It is possible to create slugs based on the hierachy? For example I have a hierachy that looks like this,
a. Jeans (entry child of "Clothing" with slug of jeans, so would expect nav menu href to be "our-clothing/jeans")
b. Jumpers ("our-clothing/jumpers")
c. Hoodies ("our-clothing/hoodies")
d. T-shirts ("our-clothing/t-shirts")
My current graphql preview implmentation just returns the url/uri/slug of the entry and not it's parent or hierachy?
Basically what I am wanting it a node to have a href of it's entries slug and it's parent's slug if it indeed has a parent. Is this possible?
Additional context
No response
The text was updated successfully, but these errors were encountered: