<pre><code>{% set home = craft.entries.section('pages').one() %}
{% set sub1 = home.getChildren().one() %}
link: &lt;a href="{{ sub1.getUrl() }}"&gt;{{ sub.title }}&lt;/a&gt;
</code></pre>

CC BY-SA 3.0
2018-04-20T10:38:27.880Z
2018-04-20T10:38:27.880Z
Robin Schambach
<p>I have a Structure Section:</p>

<ul>
<li>Home 

<ul>
<li>Sub 1</li>
<li>Sub 2 </li>
</ul></li>
<li>About

<ul>
<li>List item</li>
<li>List item</li>
</ul></li>
<li>Info</li>
</ul>

<p>How can I link the «Home»-Entry in a Structured Section to the «Sub 1»-Entry?</p>

<p>Any help is much appreciated. Thanks in advance.</p>

<craft3><structure>
How can I Link a category entry to a Subsite?
# How can I Link a category entry to a Subsite?

(Asked by: username_0 on 2018-04-20)

I have a Structure Section:

* Home
  + Sub 1
  + Sub 2
* About
  + List item
  + List item
* Info

How can I link the «Home»-Entry in a Structured Section to the «Sub 1»-Entry?

Any help is much appreciated. Thanks in advance.

**Tags:** craft3, structure


---

## 1 answers

### Answer by username_1 on 2018-04-20. Score: 2

{% set home = craft.entries.section('pages').one() %}
{% set sub1 = home.getChildren().one() %}
link: {{ sub.title }}


---

