ezsystems/ezplatform-xmltext-fieldtype
Composer 安装命令:
composer require ezsystems/ezplatform-xmltext-fieldtype
包简介
XmlText field type implementation for eZ Platform
README 文档
README
This is the XmlText field type for eZ Platform. It was extracted from the eZ Publish / Platform 5.x as it has been suceeded by docbook based RichText field type.
Support limitations
- 2.x: For eZ Platform v3, this bundle is only supported for the purpose of migrating content from XmlText to RichText field type
- 1.x: For eZ Platform v1 & v2, this bundle is supported for two use cases: Migration to Richtext, & rendering via Platform frontend*.
* While it does support editing via Platform Admin UI it is only editable as raw xmltext in a textbox, so supported use as of this field type is for temprary upgrde scenarios where legacy admin interface is used, and frontend code is being developed/migrated to eZ Platform stack (including to Symfony).
Installation
NOTE: This package comes already bundled with Legacy Bridge. However if you would rather like to 1. migrate your content directly to eZ Platform to take full advantage of it, or 2. otherwise don't want to use legacy but need this field type for some legacy content usage within pure eZ Platform setup, then run the following:
composer require --update-with-all-dependencies "ezsystems/ezplatform-xmltext-fieldtype"
And lastly enable the bundle by adding new EzSystems\EzPlatformXmlTextFieldTypeBundle\EzSystemsEzPlatformXmlTextFieldTypeBundle(), to app/AppKernel.php list of bundles.
Once you have migrated your content you can remove the bundle from both app/AppKernel.php and composer.json.
Migrating from XmlText to RichText
Warning: As of 1.6 this is now fully supported, but regardless of that always make a backup before using the migration tools.
This package provides tools to migration existing XmlText fields to RichText, the enriched text format eZ Platform uses.
The tool comes as a Symfony command, ezxmltext:convert-to-richtext.
It will do two things:
- convert
ezxmltextfield definitions toezrichtextfield definitions - convert
ezxmltextfields (content) toezrichtext
We recommend that you do a test run first using something like:
php bin/console ezxmltext:convert-to-richtext -v --concurrency=2 --dry-run
The -v flag will output logs to the console, making it easy to track the conversion work that is being done.
This is an example of a successful conversion log entry for one field:
[2016-02-03 15:25:52] app.INFO: Converted ezxmltext field #745 to richtext {"original":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<section xmlns:image=\"http://ez.no/namespaces/ezpublish3/image/\" xmlns:xhtml=\"http://ez.no/namespaces/ezpublish3/xhtml/\" xmlns:custom=\"http://ez.no/namespaces/ezpublish3/custom/\"/>\n","converted":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ez.no/xmlns/ezpublish/docbook/xhtml\" xmlns:ezcustom=\"http://ez.no/xmlns/ezpublish/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n"}
It contains, in a JSON structure, the original (ezxmltext) value, and the converted (ezrichtext) value that has been
written to the database.
Once you are ready to convert, drop -v and --dry-run.
ezsystems/ezplatform-xmltext-fieldtype 适用场景与选型建议
ezsystems/ezplatform-xmltext-fieldtype 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 231.71k 次下载、GitHub Stars 达 16, 最近一次更新时间为 2015 年 10 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ezsystems/ezplatform-xmltext-fieldtype 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ezsystems/ezplatform-xmltext-fieldtype 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 231.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 3
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2015-10-09