This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Developer » Adding a value to a XML Block

Adding a value to a XML Block

Adding a value to a XML Block

Tuesday 23 March 2010 2:22:22 pm - 1 reply


I have a script which adds values to a object and saves it using the createAndPublishObject method. The attributes which are text fields can be assigned as 'summary' => $summary (where $summary is a string) but this does not work with attributes which are XML Block fields.

How should a variable string be formatted so that it can be assigned to a XML Block attribute value?


Wednesday 24 March 2010 1:05:47 pm


You might have a look at the way it is done in : the ezpObject class (from the kernel wrapper classes which are in the test folder).

I did not yet tried it but will be interrested by your feedback, or any other alternative solution you will find.


Hakim Bouras
PRISMALOG - Creation de site Internet

Edit: correction of my mistake about the availability of the kernel wrapper)

Modified on Wednesday 24 March 2010 5:18:40 pm by Hakim Bouras


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

36 542 Users on board!

Forums menu

Proudly Developed with from