![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
strapi-plugin-menus
Advanced tools
A plugin for Strapi CMS to customize the structure of menus and menu items.
A plugin for Strapi CMS to customize the structure of menus and menu items.
title
, url
, and link target
of menu items.yarn add strapi-plugin-menus@latest
property | type (default) | description |
---|---|---|
maxDepth | number (null ) | Limits how deep menu items can be nested. |
Additional options are currently in development.
maxDepth
Limits how deep menus can be nested. By default, there is no limit.
./config/plugins.js
module.exports = {
'menus': {
enabled: true,
config: {
maxDepth: 3,
},
},
};
On the menus plugin home page, use the "Create Menu" button to open a modal form. You will need to provide a title
and a unique slug
value for the new menu.
Choosing to clone an existing menu will take you to the edit view as usual, but this time it will be pre-populated with another menu's data. Once the cloned menu is saved, a brand new menu and menu items are created.
Deleting a menu will also delete all of it's menu items.
When clicking on a menu item in the left column, it will reveal action buttons to move the item, delete it, or give it a submenu.
The right column will reveal the edit UI for that item, where the title
is the only required field.
Don't forget to enable the public find
and findOne
methods for Menus
in the Users and Permissions settings.
endpoint | description |
---|---|
/api/menus | Return all menus. |
/api/menus/:slug | Return one menu based on the slug param, which is more intuitive than the id in this case. |
?nested | Query string param that will serialize menu items into a nested format, otherwise they are returned as a flat list. |
Fetch a menu with the slug "main" with the nested
param included.
await fetch( '/api/menus/main?nested' );
{
"menu": {
"id": 55,
"title": "Main",
"slug": "main",
"createdAt": "2022-03-01T01:51:19.115Z",
"updatedAt": "2022-03-01T01:55:16.153Z",
"items": [
{
"id": 199,
"title": "Home",
"url": "/",
"order": 0,
"createdAt": "2022-03-01T01:51:29.237Z",
"updatedAt": "2022-03-01T01:55:16.134Z",
"target": null,
"parent": null,
"children": []
},
{
"id": 201,
"title": "About",
"url": "/about",
"order": 1,
"createdAt": "2022-03-01T01:54:10.198Z",
"updatedAt": "2022-03-01T01:55:16.134Z",
"target": null,
"parent": null,
"children": []
},
{
"id": 200,
"title": "Products",
"url": "/products",
"order": 2,
"createdAt": "2022-03-01T01:54:10.198Z",
"updatedAt": "2022-03-01T01:55:16.134Z",
"target": null,
"parent": null,
"children": [
{
"id": 204,
"title": "Games",
"url": "/products/games",
"order": 0,
"createdAt": "2022-03-01T01:54:10.206Z",
"updatedAt": "2022-03-01T01:55:16.134Z",
"target": null,
"parent": {
"id": 200
},
"children": []
},
{
"id": 205,
"title": "Toys",
"url": "/products/toys",
"order": 1,
"createdAt": "2022-03-01T01:54:10.206Z",
"updatedAt": "2022-03-01T01:55:16.134Z",
"target": null,
"parent": {
"id": 200
},
"children": []
}
]
},
{
"id": 206,
"title": "Contact",
"url": "",
"order": 3,
"createdAt": "2022-03-01T01:55:16.134Z",
"updatedAt": "2022-03-01T01:55:16.134Z",
"target": null,
"parent": null,
"children": [
{
"id": 207,
"title": "Email",
"url": "mailto:email@example.com",
"order": 0,
"createdAt": "2022-03-01T01:55:16.144Z",
"updatedAt": "2022-03-01T01:55:16.144Z",
"target": "_blank",
"parent": {
"id": 206
},
"children": []
},
{
"id": 208,
"title": "Github",
"url": "https://github.com",
"order": 1,
"createdAt": "2022-03-01T01:55:16.144Z",
"updatedAt": "2022-03-01T01:55:16.144Z",
"target": "_blank",
"parent": {
"id": 206
},
"children": []
}
]
}
]
}
}
Menu
and MenuItem
url
by selecting from list of relationsFAQs
A plugin for Strapi CMS to customize the structure of menus and menu items.
The npm package strapi-plugin-menus receives a total of 0 weekly downloads. As such, strapi-plugin-menus popularity was classified as not popular.
We found that strapi-plugin-menus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.