eZ Community » Forums » eZ Platform » Save a content type xml field

Save a content type xml field

Save a content type xml field

Thursday 18 February 2016 5:09:53 pm - 2 replies

Steps described here are not working


I'm getting error Could not find 'Validator' with identifier 'NULL'

Did someone managed to save a new content type with a xml field?

Modified on Thursday 18 February 2016 5:29:16 pm by Andrei Moraru

Friday 19 February 2016 9:29:59 am

Hi Andrei,

Are you trying to set the value of an XmlText field or of a RichText field ? Given the error message, I guess it's the later while the link you provide is about XmlText.

So if you are working with RichText fields, you should have a look at https://doc.ez.no/display/TECHDOC/The+RichText+Field+Type

Basically, on the root <section> element you have to provide the namespace (xmlns attribute) that will tell to the field which format you provide and how to parse it. Most likely, you'll use http://ez.no/namespaces/ezpublish5/xhtml5/edit and you can format the RichText field as a simple HTML5 like document. You can find some simple example of that in https://github.com/dpobel/TestCommandsBundle/blob/master/Command/CreateRichTextEntitiesCommand.php for instance (it's a script I used to reproduce a bug)


Friday 19 February 2016 10:56:34 am

Thx, is working 


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from