<p>I figured it out. You can do it. Here is my example. </p>

<pre><code>{% for block in mainNavigation.navigationLink %}
            &lt;a class="navbar-item {{ block.className }}" href="{{ block.linkUrl }}"&gt;
                {{ block.linkName }}
            &lt;/a&gt;

                {% if block.childLinks | length %}
                &lt;div class="navbar-dropdown is-boxed"&gt;
                    {% for row in block.childLinks %}
                        &lt;a class="navbar-item" href=""&gt;{{ row.childLinkName }}&lt;/a&gt;
                     {% endfor %}
                &lt;/div&gt;
                 {% endif %}


        {% endfor %}
</code></pre>

CC BY-SA 3.0
2018-03-29T16:20:07.883Z
2018-03-29T16:20:07.883Z
Danielle Frappier
<p>I am looking to use a matrix field for my site navigation that has some dropdowns. Using a table field within a matrix field seems like it would work but I don't know how to access the table inside the matrix field in my template. Is this possible. </p>

<matrix><craft3><table-field>
Can you store a table field within a matrix field?
# Can you store a table field within a matrix field?

(Asked by: username_0 on 2018-03-29)

I am looking to use a matrix field for my site navigation that has some dropdowns. Using a table field within a matrix field seems like it would work but I don't know how to access the table inside the matrix field in my template. Is this possible.

**Tags:** matrix, craft3, table-field

---

## 1 answers

### Answer by username_0 on 2018-03-29. Score: 1

I figured it out. You can do it. Here is my example. 
{% for block in mainNavigation.navigationLink %}
            
                {{ block.linkName }}
            

                {% if block.childLinks | length %}
                
                    {% for row in block.childLinks %}
                        {{ row.childLinkName }}
                     {% endfor %}
                
                 {% endif %}


        {% endfor %}


---

