2017 © Pedro Peláez
 

ezplatform-bundle ezplatform-xmltext-fieldtype

XmlText field type implementation for eZ Platform

image

ezsystems/ezplatform-xmltext-fieldtype

XmlText field type implementation for eZ Platform

  • Wednesday, July 11, 2018
  • by bdunogier
  • Repository
  • 18 Watchers
  • 5 Stars
  • 25,938 Installations
  • PHP
  • 3 Dependents
  • 1 Suggesters
  • 15 Forks
  • 1 Open issues
  • 34 Versions
  • 18 % Grown

The README.md

XmlText field type for eZ Platform

Build Status Downloads Latest release License, (*1)

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., (*2)

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)., (*3)

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:, (*4)

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., (*5)


Once you have migrated your content you can remove the bundle from both app/AppKernel.php and composer.json., (*6)

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., (*7)

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., (*8)

It will do two things:, (*9)

  • convert ezxmltext field definitions to ezrichtext field definitions
  • convert ezxmltext fields (content) to ezrichtext

We recommend that you do a test run first using something like:, (*10)

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:, (*11)

[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., (*12)

Once you are ready to convert, drop -v and --dry-run., (*13)

The Versions

21/08 2017
03/07 2017

1.2.x-dev

1.2.9999999.9999999-dev

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

03/07 2017
04/05 2017
26/04 2017

v1.2.0-rc1

1.2.0.0-RC1

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

05/12 2016

v1.1.3

1.1.3.0

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

19/05 2016

v1.1.2

1.1.2.0

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

17/05 2016

1.1.x-dev

1.1.9999999.9999999-dev

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

13/04 2016

v1.1.1

1.1.1.0

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

04/02 2016

v1.1.0

1.1.0.0

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

04/02 2016

v1.1.0-rc1

1.1.0.0-RC1

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

19/12 2015
02/12 2015

dev-release-rc

dev-release-rc

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

02/12 2015

v1.0.0-rc1

1.0.0.0-RC1

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

22/10 2015

1.0.0-beta2

1.0.0.0-beta2

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team

21/10 2015
21/10 2015

1.0.0-beta1

1.0.0.0-beta1

XmlText field type implementation for eZ Platform

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by eZ Systems dev team