<p>I finally found out craft allows multiple entry types. So a regular "structure" page can be of type "page" or, eg, of type "listpage". </p>

<p>I created the second entry type and gave it a field <code>function</code> instead of the content.</p>

<p>In my regular structure page, I did the following:</p>

<pre><code>{# switch between content pages and list pages; if list page, display selected list #}

{% if entry.type == 'listpage' %}
    &lt;article class="content-element"&gt;
        &lt;h1 class="heading-content-main"&gt;{{entry.title}}&lt;/h1&gt;
            {% switch entry.function %}
            {% case "interviews" %}
                {% include "interviews/_list.html" %}
            {% case "researchprojects" %}
                {% include "researchprojects/_list.html" %}
            {% case "seminars" %}
                {% include "seminars/_list.html" %}
            {% endswitch %}
    &lt;/article&gt;
{% else %}
    &lt;article class="content-element"&gt;
        &lt;h1 class="heading-content-main"&gt;{{entry.title}}&lt;/h1&gt;
        &lt;div class="rte-content w-richtext"&gt;
            {{entry.richtext}}
        &lt;/div&gt;
    &lt;/article&gt;
{% endif %}
</code></pre>

<p>Great!</p>

CC BY-SA 4.0
2018-08-25T06:24:14.960Z
2018-08-25T06:24:14.960Z
Urs
<p>I'm posting a lot of newbie questions today, hope that's ok. It will get better!</p>

<p>I would like to add a channel (list/detail) to a structure page.</p>

<pre><code>Home &gt; Pages &gt; List Page
</code></pre>

<p>I'm sure I'm looking at it the wrong way. I'm used to create this list page as a "real" page in a structure in another CMS (TYPO3) and add the "channel" content as a plugin.</p>

<p>Maybe in Craft, you don't do that (create the channels "containing page") at all? But then again, how do you tell the main site navigation it should link to the channel?</p>

CC BY-SA 4.0
2018-08-24T20:57:51.233Z
Ah I see... I can make a select box (for example), where you can pick the functionality ("Plugin") and depending on that (instead of interpreting the URL) display the entry list!
Urs
CC BY-SA 4.0
2018-08-24T22:48:41.373Z
Can you add your solution as an official answer in case it ends up helping someone in the future?
Brad Bell
<structure><channels>
Channel content in structure
# Channel content in structure

(Asked by: username_0 on 2018-08-24)

I'm posting a lot of newbie questions today, hope that's ok. It will get better!
I would like to add a channel (list/detail) to a structure page.
Home > Pages > List Page

I'm sure I'm looking at it the wrong way. I'm used to create this list page as a "real" page in a structure in another CMS (TYPO3) and add the "channel" content as a plugin.
Maybe in Craft, you don't do that (create the channels "containing page") at all? But then again, how do you tell the main site navigation it should link to the channel?

**Tags:** structure, channels
> **Comments:**
> **username_0**: Ah I see... I can make a select box (for example), where you can pick the functionality ("Plugin") and depending on that (instead of interpreting the URL) display the entry list!  
> **username_1**: Can you add your solution as an official answer in case it ends up helping someone in the future?  

---

## 1 answers

### Answer by username_0 on 2018-08-25. Score: 1 | Accepted answer

I finally found out craft allows multiple entry types. So a regular "structure" page can be of type "page" or, eg, of type "listpage". 
I created the second entry type and gave it a field function instead of the content.
In my regular structure page, I did the following:
{# switch between content pages and list pages; if list page, display selected list #}

{% if entry.type == 'listpage' %}
    
        {{entry.title}}
            {% switch entry.function %}
            {% case "interviews" %}
                {% include "interviews/_list.html" %}
            {% case "researchprojects" %}
                {% include "researchprojects/_list.html" %}
            {% case "seminars" %}
                {% include "seminars/_list.html" %}
            {% endswitch %}
    
{% else %}
    
        {{entry.title}}
        
            {{entry.richtext}}
        
    
{% endif %}

Great!


---

