New answers tagged


As mentioned in the comments: {parent.uri}/{slug} is the simplest way to do this. This is basically like a recursive function: Top level pages habe no parent, so their URL is just the slug. Second level pages have a parent with a simple slug as their URI, they get something like parent-slug/child-slug. Every subsequent level appends their own slug as a new ...


In my page structure entry type I put in a custom URI Format: {{ object.getAncestors().all() | map(page => page.slug) | push(slug) | join('/') }} If you want help understanding the meaning of that, just ask! If anyone else has a simpler / more readable way to do that, I'm all ears.

Top 50 recent answers are included