# Menu builder question

**URL:** <https://forum.getkirby.com/t/menu-builder-question/19445>\
**Category:** Questions\
**Tags:** v3\
**Created:** [September 21, 2020, 4:50pm UTC](https://forum.getkirby.com/t/menu-builder-question/19445 "2020-09-21T16:50:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![overcat](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/overcat/32/8444_2.png) [@overcat](https://forum.getkirby.com/u/overcat)\
**Post date:** [September 21, 2020, 4:50pm UTC](https://forum.getkirby.com/t/menu-builder-question/19445/1 "2020-09-21T16:50:15Z")

</div>

Hi!  
My site is getting real complicated with all possible sliders, details, snippets, albums etc,  
so i need more control over what is being shown in the menu.

i have found this [LINK](https://getkirby.com/docs/cookbook/templating/menu-builder), so i added it to site.yml file.  
Nothing happens - can you please explain in a bit more detail how to control menu per panel, or shall i hardcode it?  
Thanks!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 21, 2020, 4:55pm UTC](https://forum.getkirby.com/t/menu-builder-question/19445/2 "2020-09-21T16:55:32Z")

</div>

What do you mean with

> [@overcat](#):
>
> Nothing happens

In the Panel? On the frontend?

---

<div class="post-metadata">

**Author:** ![overcat](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/overcat/32/8444_2.png) [@overcat](https://forum.getkirby.com/u/overcat)\
**Post date:** [September 21, 2020, 4:58pm UTC](https://forum.getkirby.com/t/menu-builder-question/19445/3 "2020-09-21T16:58:56Z")

</div>

in the panel. where am i supposed to be looking for it?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 21, 2020, 5:04pm UTC](https://forum.getkirby.com/t/menu-builder-question/19445/4 "2020-09-21T17:04:48Z")

</div>

If you have modified your `site.yml`, the new fields should appear right on the first view you see after accessing the Panel.

If not, please post your blueprint, maybe there is something wrong with it.

---

<div class="post-metadata">

**Author:** ![overcat](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/overcat/32/8444_2.png) [@overcat](https://forum.getkirby.com/u/overcat)\
**Post date:** [September 21, 2020, 5:06pm UTC](https://forum.getkirby.com/t/menu-builder-question/19445/5 "2020-09-21T17:06:35Z")

</div>

```
title: Site
preset: pages
unlisted: true

  menu:
type: structure
  fields:
    mainMenu:
      type: pages
      label: Mainmenu item
    max: 1
      hasSubmenu:
        type: toggle
        text: Include a submenu?
    subMenu:
      type: pages
      label: Submenu items
      when:
        hasSubmenu: true

```

Would this be a correct definition? (i’ve just wanted to test this so took the one from the link and copypasted^^ ) Sry this markdown is hard on me - never worked with it before, perhaps some structural issue? Could you please post a model site yml file of how it would look like if correctly implemented? thanks a lot, Texnixe 😃

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 21, 2020, 5:15pm UTC](https://forum.getkirby.com/t/menu-builder-question/19445/6 "2020-09-21T17:15:34Z")

</div>

Oh, there is something missing and your indentation is not correct either. You need at least the fields key and cannot use the `pages` preset:

```auto
title: Site

fields
  menu:
    type: structure
    fields:
      mainMenu:
        type: pages
        label: Mainmenu item
        max: 1
      hasSubmenu:
        type: toggle
        text: Include a submenu?
      subMenu:
        type: pages
        label: Submenu items
        when:
          hasSubmenu: true

```

---

<div class="post-metadata">

**Author:** ![overcat](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/overcat/32/8444_2.png) [@overcat](https://forum.getkirby.com/u/overcat)\
**Post date:** [September 21, 2020, 5:38pm UTC](https://forum.getkirby.com/t/menu-builder-question/19445/7 "2020-09-21T17:38:15Z")

</div>

Hi, thanks - have it now! Have a nice evening and thanks!  
Here once more a functioning whole site yml file if somebody needs it  
Sry 4 crossposting, is deleted.

```
title: Site

columns:
  left:
    width: 2/3
    sections:
      # sections in the left column

      pages:
        type: pages
        headline: Öffentliche Seiten
        status: listed
        
      unlisted:
        type: pages
        headline: Versteckte Seiten
        status: unlisted
      
      drafts:
        type: pages
        headline: Unfertige Seiten
        status: draft
        
  right:
    width: 1/3
    fields:
      menu:
        type: structure
        fields:
          mainMenu:
            type: pages
            label: Mainmenu item
            max: 1
          hasSubmenu:
            type: toggle
            text: Include a submenu?
          subMenu:
            type: pages
            label: Submenu items
            when:
              hasSubmenu: true
```
