> For the complete documentation index, see [llms.txt](https://wiki.helpch.at/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.helpch.at/helpchat-plugins/deluxemenus/external-menus.md).

# External menus

Modify each menu in its own file!

## Creating a new menu

1\. Open the config file `plugins/DeluxeMenus/config.yml`.\
2\. Register the new menu by adding the following under the `gui_menus:` section:

> ```yaml
>   <MenuName>:
>     file: <FileName>.yml
> ```
>
> > * `<MenuName>` is the menu's name (should be unique) .
> > * `<FileName>` is the menu's file name, it's preferred to use the menu's name to prevent confusion (should be unique).

***Note! You can also use file: \<Directory>/\<FileName>.yml to put menus in Sub Directories(Folders).***

So it will be like this:

```yaml
gui_menus:
  <MenuName>:
    file: <FileName>.yml
```

3\. Reload DeluxeMenus plugin (`/dm reload`).\
4\. The menu's file will be generated by the plugin and can be found in the `gui_menus` folder (`plugins/DeluxeMenus/gui_menus`).\
5\. You're done! Open the menu's file and modify it as you wish.

## Moving a menu from config to its own file

1\. Open the config file `plugins/DeluxeMenus/config.yml`.\
2\. Go to the menu part in the config and add the following line to it:

> ```yaml
>     file: <FileName>.yml
> ```
>
> > * `<FileName>` is the menu's file name, it's preferred to use the menu's name to prevent confusion (should be unique).

So it will be like:

```yaml
  YourMenuName:
    file: <FileName>.yml
    menu_title: "Your Title"
    size: #
    # etc
```

3\. Reload DeluxeMenus plugin (`/dm reload`).\
4\. The new menu's file will be generated by the plugin and can be found in the `gui_menus` folder (`plugins/DeluxeMenus/gui_menus`). Go and open it.\
5\. Cut your menu's lines (from the first line after the `file:` option you added in step 2 to the last line for the menu) in the config file.\
6\. Go to the menu's external file and replace the content of it with the menu's lines you cut from the config file (from the previous step).\
7\. Remove 4 spaces before every line in the menu's external file. You can easily do this by selecting all the text in the file (`CTRL` + `A`) then press (`CTRL` + `[`) twice (This way may not be supported in all text editors, such as Notepad++).\
8\. Reload DeluxeMenus plugin (`/dm reload`).\
9\. You're done! The new file should look like this:

```yaml
menu_title: "Your Title"
size: #
# etc
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.helpch.at/helpchat-plugins/deluxemenus/external-menus.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
