2

This seems like it should be straight forward. I need to set-up a structure section with a parent page which uses the same section entry and same template. So the parent would have 'parent' as the slug and the children would have 'parent' as the first segment of the URL ie parent/children. Under the site settings in the section page I can include 'parent' before the slug, but this means the parent page gets the URL parent/parent. How do I get the parent page to keep the URL parent/?

1 Answer 1

6

If you do this:

{parent.uri}/{slug}

You should get URLs like this:

  • site.com/parent
  • site.com/parent/child-1
  • site.com/parent/child-2

Does that make sense?

2
  • 2
    Yes, it makes sense! (This needs to be set in the site setting field of course)
    – Andrew
    Commented Dec 4, 2019 at 13:48
  • Great. Please accept the answer if it is correct. (I get karma points for this, which enables me to get the best parking spots downtown.)
    – 4midori
    Commented Dec 4, 2019 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.