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/?

2

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?

|improve this answer|||||
  • 1
    Yes, it makes sense! (This needs to be set in the site setting field of course) – Andrew Dec 4 '19 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 Dec 4 '19 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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