{"id":23395785,"url":"https://github.com/netgen/ibexa-xmltext-fieldtype","last_synced_at":"2025-04-11T14:10:53.014Z","repository":{"id":57703151,"uuid":"501272673","full_name":"netgen/ibexa-xmltext-fieldtype","owner":"netgen","description":"XmlText field type for Ibexa OSS","archived":false,"fork":false,"pushed_at":"2023-02-03T14:09:46.000Z","size":1113,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-09T06:03:30.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netgen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-08T13:53:39.000Z","updated_at":"2022-06-08T13:55:45.000Z","dependencies_parsed_at":"2023-02-10T22:01:29.409Z","dependency_job_id":null,"html_url":"https://github.com/netgen/ibexa-xmltext-fieldtype","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netgen%2Fibexa-xmltext-fieldtype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netgen%2Fibexa-xmltext-fieldtype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netgen%2Fibexa-xmltext-fieldtype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netgen%2Fibexa-xmltext-fieldtype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netgen","download_url":"https://codeload.github.com/netgen/ibexa-xmltext-fieldtype/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248414141,"owners_count":21099420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-22T07:18:19.712Z","updated_at":"2025-04-11T14:10:52.960Z","avatar_url":"https://github.com/netgen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XmlText field type for eZ Platform\n\n[![Build Status](https://img.shields.io/travis/ezsystems/ezplatform-xmltext-fieldtype.svg?style=flat-square\u0026branch=master)](https://travis-ci.org/ezsystems/ezplatform-xmltext-fieldtype)\n[![Downloads](https://img.shields.io/packagist/dt/ezsystems/ezplatform-xmltext-fieldtype.svg?style=flat-square)](https://packagist.org/packages/ezsystems/ezplatform-xmltext-fieldtype)\n[![Latest release](https://img.shields.io/github/release/ezsystems/ezplatform-xmltext-fieldtype.svg?style=flat-square)](https://github.com/ezsystems/ezplatform-xmltext-fieldtype/releases)\n[![License](https://img.shields.io/github/license/ezsystems/ezplatform-xmltext-fieldtype.svg?style=flat-square)](LICENSE)\n\nThis 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](https://github.com/ezsystems/ezplatform-richtext) field type.\n\n\n### Support limitations\n\n- 2.x: For eZ Platform v3, this bundle is **only** supported for the purpose of migrating content from XmlText to RichText field type\n- 1.x: For eZ Platform v1 \u0026 v2, this bundle is supported for two use cases: Migration to Richtext, \u0026 rendering via Platform frontend\\*.\n\n_* 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)._\n\n\n## Installation\n\nNOTE: This package comes already bundled with [Legacy Bridge](https://github.com/ezsystems/LegacyBridge). 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:\n\n```\ncomposer require --update-with-all-dependencies \"ezsystems/ezplatform-xmltext-fieldtype\"\n```\n\nAnd lastly enable the bundle by adding `new EzSystems\\EzPlatformXmlTextFieldTypeBundle\\EzSystemsEzPlatformXmlTextFieldTypeBundle(),` to `app/AppKernel.php` list of bundles.\n\n----\n\n_Once you have migrated your content you can remove the bundle from both `app/AppKernel.php` and `composer.json`._\n\n\n## Migrating from XmlText to RichText\n\n**Warning: As of 1.6 this is now fully supported, but regardless of that always make a backup before using the migration tools.**\n\nThis package provides tools to migration existing XmlText fields to RichText, the enriched text format eZ Platform uses.\nThe tool comes as a Symfony command, `ezxmltext:convert-to-richtext`.\n\nIt will do two things:\n\n- convert `ezxmltext` field definitions to `ezrichtext` field definitions\n- convert `ezxmltext` fields (content) to `ezrichtext`\n\nWe recommend that you do a test run first using something like:\n\n```\nphp bin/console ezxmltext:convert-to-richtext -v --concurrency=2 --dry-run\n```\n\nThe `-v` flag will output logs to the console, making it easy to track the conversion work that is being done.\nThis is an example of a successful conversion log entry for one field:\n\n```\n[2016-02-03 15:25:52] app.INFO: Converted ezxmltext field #745 to richtext {\"original\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003csection xmlns:image=\\\"http://ez.no/namespaces/ezpublish3/image/\\\" xmlns:xhtml=\\\"http://ez.no/namespaces/ezpublish3/xhtml/\\\" xmlns:custom=\\\"http://ez.no/namespaces/ezpublish3/custom/\\\"/\u003e\\n\",\"converted\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003csection 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\\\"/\u003e\\n\"}\n```\n\nIt contains, in a JSON structure, the `original` (ezxmltext) value, and the `converted` (ezrichtext) value that has been\nwritten to the database.\n\nOnce you are ready to convert, drop `-v` and `--dry-run`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetgen%2Fibexa-xmltext-fieldtype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetgen%2Fibexa-xmltext-fieldtype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetgen%2Fibexa-xmltext-fieldtype/lists"}