code-rhapsodie / ezautosave-bundle
eZPlatform 的自动保存组件
v2.0
2021-10-06 08:35 UTC
Requires
- php: >=7.3
- ezsystems/ezplatform-admin-ui: ^2.0
- ezsystems/ezplatform-kernel: ^1.0
README
此组件为 eZPlatform 添加了简单的自动保存功能。
版本 1 适用于 eZPlatform 2,版本 2 适用于 eZPlatform 3(Ibexa 内容)。
仅客户端,使用浏览器存储来保存内容状态。不需要任何 JS 库。
功能
在创建或编辑内容时,其字段值将被定期保存。
要加载保存的值,只需创建相同内容类型的新内容,或编辑相同的内容,系统将提示您是否要恢复保存的值。
安装
添加依赖项
要安装此组件,请运行以下命令:
$ composer require code-rhapsodie/ezautosave-bundle
注册组件
在 config/bundles.php
文件中添加 CodeRhapsodie\EzAutosaveBundle\CodeRhapsodieEzAutosaveBundle::class => ['all' => true],
仅在 EzPlatformAdminUiBundle
行之前。
例如:
<?php return [ // ... CodeRhapsodie\EzAutosaveBundle\CodeRhapsodieEzAutosaveBundle::class => ['all' => true], EzSystems\EzPlatformAdminUiBundle\EzPlatformAdminUiBundle::class => ['all' => true], // ... ];
问题和功能请求
请在此处报告问题和请求功能:https://github.com/code-rhapsodie/ezautosave-bundle/issues。
贡献
欢迎贡献。请参阅 CONTRIBUTING.md 以获取详细信息。感谢所有已经做出贡献的人。
许可
此软件包受 MIT 许可 许可。