# Create a structure with optional sub-structures

**URL:** https://forum.getkirby.com/t/create-a-structure-with-optional-sub-structures/26654
**Category:** Questions
**Tags:** v3
**Created:** [October 5, 2022, 4:16pm UTC](https://forum.getkirby.com/t/create-a-structure-with-optional-sub-structures/26654 "2022-10-05T16:16:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mxst](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mxst/32/12448_2.png) [@mxst](https://forum.getkirby.com/u/mxst)
#### Post date: [October 5, 2022, 4:16pm UTC](https://forum.getkirby.com/t/create-a-structure-with-optional-sub-structures/26654/1 "2022-10-05T16:16:19Z")

</div>

Hey everyone,

I was wondering how I would add addon items to a restaurant menu.

The [Restaurant menu | Kirby CMS](https://getkirby.com/docs/reference/panel/samples/menu) is pretty straight forward but we have extra toppings for example.

I would love to represent something like this:

```auto
Base Greek Salad .... 10,00 €
> additional Feta .. +2,00 €

```

So does anyone have an idea on how to add an addon-item to the structure ?

~ Max

---

<div class="post-metadata">

### Author: ![tojai](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tojai/32/12075_2.png) [@tojai](https://forum.getkirby.com/u/tojai)
#### Post date: [October 5, 2022, 4:44pm UTC](https://forum.getkirby.com/t/create-a-structure-with-optional-sub-structures/26654/2 "2022-10-05T16:44:16Z")

</div>

Hey there,

I have no idea how many addon-items you have. Maybe it would be best to setup a separate item (e.g. Add-ons) within the CMS containing all the addon-items, to which you could refer to as a page & go from there.  
So the dish-structure would look like this:

```auto
label: Dishes
type: structure
fields:
  dish:
    label: Dish
    type: text
    width: 1/4
  description:
    label: Description
    type: text
    width: 1/4
  price:
    label: Price
    type: number
    before: €
    step: 0.01
    width: 1/4
  addon:
    label: Add-on
    type: page
    query: site.find("addons")
    width: 1/4

```

And the blueprint for the addon.yml would look like this:

```auto
title: Add-on
fields:
 name: 
    label: Name
    type: text

  price:
    label: Price
    type: number
    before: €
    step: 0.01
    width: 1/4

```
