# Dynamic Buttons

Dynamic buttons are a special type of button in Opus toolbars that behave differently in and out of Customize mode. In Customize mode they appear like any other button, and can be edited as normal - but in normal operation, the button itself disappears and is replaced by a dynamic list of items. For example, the Drive Buttons command on the supplied Drives toolbar is a normal button in Customize mode:

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-bb67eac8eaca8fd1776b876037f91736e1c5dcf2%2Fdynamic_buttons_-_customize.png?alt=media)

But once the Customize dialog has been closed, we can see that the two buttons have disappeared, to be replaced with one button for each of the drives in the system:

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-adcea61a9b66daa9fea5f8ab187976dd9ee1661a%2Fdynamic_buttons_-_no_customize.png?alt=media)

When out of Customize mode the generated buttons behave like normal ones, but the advantage is that you only need a single button to generate them - instead of having to define a button for each drive.

Dynamic buttons are also used for things like displaying your Favorite folders, your FTP sites, and Lister [layouts](https://chaoses-ib.gitbook.io/directory-opus/manual/basic_concepts/the_lister/layouts) and [styles](https://chaoses-ib.gitbook.io/directory-opus/manual/basic_concepts/the_lister/styles).

More:

[Drive Buttons Configuration](https://chaoses-ib.gitbook.io/directory-opus/manual/customize/creating_your_own_buttons/editing_the_toolbar/dynamic_buttons/drive_buttons_configuration)


---

# 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://chaoses-ib.gitbook.io/directory-opus/manual/customize/creating_your_own_buttons/editing_the_toolbar/dynamic_buttons.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.
