<p>Set the Nested Entries URL format to:</p>

<pre><code>{parent.uri}/{slug}
</code></pre>

CC BY-SA 3.0
2015-03-17T11:13:45.507Z
As a side question: I lost this piece of code in the field while setting the structure to one level, then I could find it nowhere in the documentation of craft or twig. There is no ordered overview of this kind of variables?
noregt
CC BY-SA 3.0
2015-03-17T19:43:04.890Z
I don't quite understand your question, could you please expand on it a bit?
Ben Croker
CC BY-SA 3.0
2015-03-18T07:29:08.127Z
To put it simple: where can I find this {parent.uri} in the docs?
noregt
CC BY-SA 3.0
2015-03-19T07:51:03.090Z
I don't see it in the docs, but the field itself contains instructions saying that "you can include tags that output entry properties", and parent is documented here: http://buildwithcraft.com/docs/templating/entrymodel#parent
Ben Croker
CC BY-SA 3.0
2015-03-19T11:21:16.953Z
Thanks Ben, that's give me an idea about how the docs are setup :-)
noregt
CC BY-SA 4.0
2019-10-10T12:55:20.157Z
Now with the new `headlessMode` in Craft 3.3 the entries url format is gone. How would I defined the URI now?
Merc
CC BY-SA 4.0
2019-10-10T17:37:28.630Z
Probably better to post this as a new question :)
Ben Croker
CC BY-SA 3.0
2014-09-10T15:40:43.140Z
2014-09-10T15:40:43.140Z
Ben Croker
<p>I have a nested Structure with 3 layers like so:</p>

<ul>
<li>Home</li>
<li>Services
<ul>
<li>Service A
<ul>
<li>Sub Service A</li>
<li>Sub Service B</li>
</ul></li>
<li>Service B</li>
</ul></li>
<li>About Us</li>
<li>Contact</li>
</ul>

<p>Now I would like the nesting to be reflected in the URL like so:</p>

<p><code>http://example.com/services/service-a/sub-service-a</code></p>

<p>I used <code>{parent.slug}/{slug}</code> as the URL Format and this is working for two but not three layers.</p>

<p>How would the correct format look like?</p>

<url><structure><format><nested-set>
URL Format of a nested structure with 3 or more layers
# URL Format of a nested structure with 3 or more layers

(Asked by: username_0 on 2014-09-10)

I have a nested Structure with 3 layers like so:

* Home
* Services
  + Service A
    - Sub Service A
    - Sub Service B
  + Service B
* About Us
* Contact

Now I would like the nesting to be reflected in the URL like so:

`http://example.com/services/service-a/sub-service-a`

I used `{parent.slug}/{slug}` as the URL Format and this is working for two but not three layers.

How would the correct format look like?

**Tags:** url, structure, format, nested-set

---

## 1 answers

### Answer by username_1 on 2014-09-10. Score: 13 | Accepted answer

Set the Nested Entries URL format to:
{parent.uri}/{slug}

> **Comments:**
> **username_2**: As a side question: I lost this piece of code in the field while setting the structure to one level, then I could find it nowhere in the documentation of craft or twig. There is no ordered overview of this kind of variables?  
> **username_1**: I don't quite understand your question, could you please expand on it a bit?  
> **username_2**: To put it simple: where can I find this {parent.uri} in the docs?  
> **username_1**: I don't see it in the docs, but the field itself contains instructions saying that "you can include tags that output entry properties", and parent is documented here: http://buildwithcraft.com/docs/templating/entrymodel#parent  
> **username_2**: Thanks Ben, that's give me an idea about how the docs are setup :-)  
> **username_3**: Now with the new `headlessMode` in Craft 3.3 the entries url format is gone. How would I defined the URI now?  
> **username_1**: Probably better to post this as a new question :)  

---

