eZ Community » Forums » eZ Platform » Update RichText with API
expandshrink

Update RichText with API

Update RichText with API

Thursday 06 July 2017 11:42:39 am

How can i update RichText with api?

I try :

*  $inputString = <<<DOCBOOK
<?xml version="1.0" encoding="UTF-8"?>
<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">
   <para ezxhtml:class="paraClass">$string</para>
</section>
DOCBOOK;*/
$inputString=<<< EOX
<?xml version='1.0' encoding='utf-8'?>
<section>
<paragraph>$string</paragraph>
</section>
EOX;
 

But i have this error in this 2 cases: 

[eZ\Publish\Core\Base\Exceptions\InvalidArgumentType]                          Argument '%argumentName%' is invalid: expected value to be of type 'eZ\Publ    ish\Core\FieldType\RichText\Value', got 'eZ\Publish\Core\FieldType\XmlText\    Value' 

 

Any idea?

Modified on Thursday 06 July 2017 11:48:09 am by camille smile

No reply yet!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from