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
expandshrink

Adding a value to a XML Block

Adding a value to a XML Block

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

Hi,

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?

thanks.

Wednesday 24 March 2010 1:05:47 pm

Hi,

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.

Cheers,

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

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from