Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/collective/volto-dropdownmenu
Volto addon for a customizable dropdown menu
https://github.com/collective/volto-dropdownmenu
controlpanel dropdownmenu hacktoberfest menu plone volto volto-addon
Last synced: about 2 months ago
JSON representation
Volto addon for a customizable dropdown menu
- Host: GitHub
- URL: https://github.com/collective/volto-dropdownmenu
- Owner: collective
- Created: 2020-08-19T10:03:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-07T09:30:52.000Z (7 months ago)
- Last Synced: 2024-11-05T00:34:47.627Z (2 months ago)
- Topics: controlpanel, dropdownmenu, hacktoberfest, menu, plone, volto, volto-addon
- Language: JavaScript
- Homepage:
- Size: 21 MB
- Stars: 5
- Watchers: 11
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-volto - volto-dropdownmenu - Volto addon for a customizable dropdown menu. Intended to be used with `collective.volto.dropdownmenu` (Addons)
README
# volto-dropdownmenu
Volto addon for a customizable dropdown menu.
Intended to be used with [collective.volto.dropdownmenu](https://github.com/collective/collective.volto.dropdownmenu)To be used with mrs-developer, see [Volto docs](https://docs.voltocms.com/customizing/add-ons/) for further usage informations.
Created with [voltocli](https://github.com/nzambello/voltocli).
## Installation
Afer installation, please add following lines into package.json to enable it.
```json
"addons": [
"volto-dropdownmenu"
],```
## Usage
> If you are using Volto < 16, then use [v2.4.3](https://github.com/collective/volto-dropdownmenu/tree/v2.4.3)
>
> If you are using Volto < 12, then use [v1.3.0](https://github.com/collective/volto-dropdownmenu/tree/v1.3.0)Simply load the addon in your project, then edit the configuration in `/controlpanel/dropdown-menu-settings`.
Example configuration to be saved in Plone [here](./menuConfigurationExample.json).To use the default template for the dropdown menu, add `src/addons/volto-dropdownmenu/src/customizations` in your `package.json` in `customizationPaths`.
```json
"customizationPaths": [
"src/customizations",
"src/addons/volto-dropdownmenu/src/customizations"
]
```To customize the `MenuConfigurationForm` component, you can now create your own component in your site and replace it using the Volto component registry in your site config file:
```javascript
import MyMenuConfigurationForm from './src/MyMenuConfigurationForm';config.registerComponent({
name: 'MenuConfigurationForm',
component: MyMenuConfigurationForm,
});
```### Navigation roots
By default, navigations roots are clickable, but there's the possibility to make them not clickable.
Enabling the field 'clickableNavigationRoots' in volto-dropdownmenu config, a field appears in configuration form and let editor to decide if make navigation roots clickable or not.```json
config.settings["volto-dropdownmenu"] = {
"options": {
"clickableNavigationRoots": true, //if true, a checkbox option in dropdown menu appears
},
};
```## Screenshots and demo
### Controlpanel
![Addon controlpanel](./docs/controlpanel.png)
### Dropdown menu
![Dropdown menu](./docs/dropdown-menu.png)
### Demo
You can watch a demonstration video on [YouTube](https://youtu.be/p2xBpTou26M)