netgen / richtext-datatype-bundle
Netgen RichText datatype bundle 允许 eZ Publish Legacy 与 eZ Platform 中的富文本字段类型 (ezrichtext) 一起工作
2.0.0
2023-02-03 13:56 UTC
Requires
- ibexa/core: ^4.4
- netgen/ngsymfonytools: ^2.0
README
此插件实现了 eZ Platform 中富文本字段类型(ezrichtext
)的遗留 eZ Publish 数据类型。
数据类型的目的在于使 eZ Publish Legacy 能够编辑和发布包含富文本字段的的内容。
由于在 eZ Platform UI 之外无法使用 Alloy Editor,此插件只显示字段的原始 XML 内容在文本区域中。
然而,可以在文本区域中手动更改数据,并且它将被保留(包括关系和嵌入内容的链接)。
该插件仍处于原型阶段,但基本测试表明它工作正常。
安装说明
-
通过 Composer 安装插件
$ composer require netgen/richtext-datatype-bundle:^1.0
-
在您的
app/AppKernel.php
中激活插件$bundles = array( ... new Netgen\Bundle\RichTextDataTypeBundle\NetgenRichTextDataTypeBundle(), ... );
-
在 eZ Publish Legacy 的
site.ini.append.php
中激活遗留的ezrichtext
和ngsymfonytools
扩展[ExtensionSettings] ActiveExtensions[]=ngsymfonytools ActiveExtensions[]=ezrichtext
-
重新生成 eZ Publish Legacy 的自动加载(如果 Composer 安装/更新脚本未自动执行)
$ php app/console ezpublish:legacy:script bin/php/ezpgenerateautoloads.php
-
清除缓存
$ php app/console cache:clear
-
插件已准备好在 eZ Publish Legacy 中使用,包括向您的类添加
ezrichtext
属性、使用属性编辑内容以及通过attribute_view_gui
渲染。