Craft Neo – childs Output I have a question. How can I output the Childs from a Neo (Neo Plugin) Block?

With this code, i get the output for all level 1 blocks but i don't get a output for the deeper levels.

And how can I handle different child templates for the Output?

My idea is to have a switch with different case for the level 2 output. Because i've different child block options.

{% for block in entry.MatrixNeo.level(1) %}
    {% switch block.type.handle %}

        {% case 'title' %}
            &lt;h2&gt;{{ block.mainTitle }}&lt;/h2&gt;


        {% case 'boxes' %}
             &lt;h2&gt;{{ block.mainTitle }}&lt;/h2&gt;   

            {% for item in block.children %}
                {% switch block.type.handle %}

                    {% case 'box' %}
                        &lt;h2&gt;{{ block.mainTitle }}&lt;/h2&gt;

                        {% case 'image' %}
                        &lt;h2&gt;{{ block.mainTitle }}&lt;/h2&gt;

                {% endswitch %}
            {% endfor %}

    {% endswitch %}
{% endfor %}


Can somebody help me out, please?

=====================

UPDATE

Now my code works fine but i've a new questione:

How can i output a real Matix-Field in a child element (level 2 in Neo).

My Code:

{% nav block in entry.myField.level(1) %}
    {% switch block.type.handle %}
        {% case 'title' %}
            &lt;hgroup&gt;
                &lt;h2&gt;{{ block.mainTitle }}&lt;/h2&gt;
                &lt;h4&gt;{{ block.subTitle }}&lt;/h4&gt;
            &lt;/hgroup&gt;

        {% case 'intro' %}
            &lt;section class="block"&gt;
                {% for item in block.children %}
                    {% include "_includes/elements/" ~ item.type %}
                {% endfor %}
            &lt;/section&gt;

    {% endswitch %}
{% endnav %}


The child Code:

&lt;div class="box"&gt;
    &lt;h2&gt;{{ item.mainTitle }}&lt;/h2&gt;

    {% for button in block.myButton %}
        {% switch button.type %}
            {% case 'buttonIntern' %}
                &lt;a class="button" href="{{ button.linkIntern }}"&gt;{{ button.linkText }}&lt;/a&gt;

            {% case 'buttonExtern' %}
                &lt;a class="button" target="_blank" href="{{ button.linkIntern }}"&gt;{{ button.linkExtern }}&lt;/a&gt;

        {% endswitch %}
    {% endfor %}

&lt;/div&gt;
Your above code is not working because you are using "block" instead of "item" in your children. So...

{% for item in block.children %}
    {% switch item.type.handle %}


You don't necessarily need to do a switch here, you could do a series of includes and make their file names match your block type... so "_includes/neo/box.twig" and "_includes/neo/image.twig"

In the example below I am replacing "item" with "child" to explain it better.

{% for block in entry.MatrixNeo.level(1) %}
      &lt;h2&gt;{{ block.mainTitle }}&lt;/h2&gt;
      {% for child in block.children %}
           {% include "_includes/neo/" ~ child.type %}
      {% endfor %}
    {% endfor %}