@tanglemedia/directus-collection-menu
v0.0.2
Published
Installs the Menu Collection to your Directus project.
Maintainers
Readme
@tanglemedia/directus-collection-menu
Installs the Menu Collection to your Directus project.
The package will install the following collections:
- Menu Collection
tngl_menu - Menu Item Collection
tngl_menu_item
It automatically sets the following:
- Creates a new role called Website. If the Website role already exist, it will not create a new one.
- Website role will have READ permission to tngl_menu collection
- Website role will have READ permission to tngl_menu_item collection
- Sets default presets when viewing a list of pages
Requirements
- Directus >= 10.10.1
- Node >= 18.x.x
- Before you proceed, install the following Directus extensions to automatically link a page collection to a menu item if the user selects "Internal Page" as a menu item type:
- @tanglemedia/directus-collection-page
Install
npm i @tanglemedia/directus-collection-menunpx directus bootstrapto update your database and restart directus
What's inside the package
Menu Collection
- Sort
- Enable
- Name
- Menu Item
Menu Item Collection
- Sort
- Enable
- Image
- Name
- Type
- URL
- Page (related to
tngl_page) - Parent
- Children
- Menu Category
