- Navigate to the root of the strapi project
- Run
strapi generate - Select plugin
- Add the requested data
The Admin is the frontend part of your plugin. All of its code will be locate in the admin/ folder located within the plugin.
strapi generateThe Admin is the frontend part of your plugin. All of its code will be locate in the admin/ folder located within the plugin.
| "use strict"; | |
| /** | |
| * Get the value following the `path` for the provided object. | |
| * Returns undefined if not found unless a default value is provided | |
| * | |
| * @param {Object} object The object to check | |
| * @param {Array|String} path The path to the object attribute | |
| * @param {any} defaultValue The value to return instead of undefined. | |
| * @returns {any} The resolved value |
Below are common solutions regarding issues with plugins
./config/plugins.js not ./config/plugin.js, see project structure.Below are common issues regarding content types and their possible solutions.
/api/posts/api/homepageFor single content types if draftAndPublish is enabled the response will return a 404 Not Found if the entity is not published.