开发 Strapi 插件
🌐 Developing Strapi plugins
Strapi 允许开发的插件其工作方式与内置插件或可从 Marketplace获取的第三方插件完全相同。创建后,你的插件可以被:
- 用作本地插件,仅适用于特定的 Strapi 项目,
- 或 submitted to the Marketplace 与社区共享。
👉 开始开发 Strapi 插件:
- 使用插件 SDK 创建插件。
- 了解更多关于插件的结构的信息。
- 获取 插件 API 的概览,以向你的插件添加功能。
- 根据你的使用案例阅读一些高级指南。
Note
确保你以不同的主要版本号发布 Strapi 5 插件,以将其与 v4 兼容版本区分开来。
🌐 Ensure you release your Strapi 5 plugin as a different major version number to distinguish it from the v4 compatible version.
插件API
🌐 Plugin APIs
Strapi 为插件提供以下编程 API 来连接 Strapi 的一些功能:
🌐 Strapi provides the following programmatic APIs for plugins to hook into some of Strapi's features:
Custom fields plugins
插件也可以用于向 Strapi 添加 自定义字段。
🌐 Plugins can also be used to add custom fields to Strapi.
指南
🌐 Guides
如何从 Strapi 插件存储和访问数据
如何通过插件将数据从后端服务器传递到管理面板
如何为插件创建管理员权限
如何为插件创建组件
Additional resources
The contributors documentation 还可以包括在开发 Strapi 插件时有用的额外信息。