插件简介
¥Introduction to plugins
Strapi 围绕不同类型的插件构建。每个默认的 Strapi 应用都附带以下预装插件:
¥Strapi is built around different types of plugins. Every default Strapi application comes with the following pre-installed plugins:
内容管理器(见 内容管理器简介)
¥Content Manager (see Introduction to the Content Manager)
内容类型生成器(参见 内容类型生成器简介)
¥Content Type Builder (see Introduction to the Content-type Builder)
电子邮件
¥Email
媒体库(通过 上传插件 实现)
¥Media Library (implemented via the Upload plugin)
国际化
¥Internationalization
角色和权限
¥Roles and Permissions
这些插件对于 Strapi 应用的运行至关重要,并且无法卸载。
¥These plugins are essential for your Strapi application to function and cannot be uninstalled.
市场 中提供了可用于扩展和自定义 Strapi 应用的其他插件。本节重点介绍如何安装和管理这些附加插件。
¥Additional plugins that you can use to extend and customize your Strapi applications are available in the Marketplace. This section focuses on how to install and manage these additional plugins.
在管理面板中,管理员可以:
¥From the admin panel, administrators are allowed to:
市场(见 管理市场插件)
¥Marketplace (see Managing Marketplace plugins)
设置 > 插件
¥Settings > Plugins
提供者
¥Providers
一些插件可以通过提供程序的配置进一步扩展,这些程序包设计用于在现有插件之上使用并向其添加特定的集成。例如,你可以使用 AWS S3 提供者来扩展媒体库插件并将文件存储在 S3 存储桶中,而不是本地服务器上。
¥Some plugins can be further extended through the configuration of providers, packages designed to be used on top of an existing plugin and add a specific integration to it. For example, you can use the AWS S3 provider to extend the Media Library plugin and store files in your S3 bucket rather than locally on your server.
目前,唯一设计用于与提供者合作的插件是:
¥Currently, the only plugins designed to work with providers are the:
电子邮件插件,和
¥Email plugin, and
媒体库插件(通过 上传插件 实现)。
¥Media Library plugin (implemented via the Upload plugin).
自定义字段
¥Custom fields
一些插件可以向 Strapi 添加自定义字段(有关创建自定义字段插件的更多信息,请参阅 开发者文档)。自定义字段是通过向内容类型或组件添加新类型的字段来扩展 Strapi 功能的一种方式。
¥Some plugins can add custom fields to Strapi (for additional information about creating custom fields plugins, see Developer Docs). Custom fields are a way to extend Strapi’s capabilities by adding new types of fields to content-types or components.
添加到 Strapi 后(请参阅 市场),可以在 内容类型生成器 中创建自定义字段并在 内容管理者 中使用。
¥Once added to Strapi (see Marketplace), custom fields can be created in the Content-type Builder and used in the Content Manager.