# Adding New Menu

Adding a new menu in the Crema is a cup of cake. You don't have to add the menu separately for horizontal layouts and vertical layouts. You simply have to add a new menu to a single file and the menu will be added to all the layouts automatically.

**Steps to add a new menu:-**

1\. Go to the file with the path : -

```
src/modules/routesConfig.js
```

2\. Adding a group of menu's:-

If you want to add a group of menu, Just add a new object in the above-said file with the following properties as shown in the below screenshot:-

![](/files/-M3ZvgOzy1La19f2lfNr)

The children's property of a group contains objects as shown below.

![](/files/-M3ZvmVA4ZWIE-VHoiIa)

3\. Adding Collapse type Menu:-

To add a collapse type menu, go to the 'routesConfig' file (path given in step 1) and add a new object to the 'routesConfig' array. The new object show look like this:-

![](/files/-M3ZvrlhbMw00QWd5ir2)

4\. Adding a menu item:-

Adding a menu item is very easy, You just have to add an object in the 'routesConfig' array in the 'routesConfig' file (path given in step 1). The Item object should look contain the following properties as shown in the screenshot shown below.

![](/files/-M3Zw1qvlLEKVkLdUV4J)

In the nutshell, You just have to add an object in order to array a new menu. The object contains a property named 'type' which can have three values i.e. 'group', 'collapse' and 'item'. You just have to pass the correct value to this 'type' property as per the type of menu you want to add. All other properties in the object remain the same.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cremawork.com/v2.0/sidebar-menu/adding-new-menu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
