add image to xml block via script

Author Message

Philippe VINCENT-ROYOL

Thursday 02 September 2010 8:17:04 am

Hi guys,

I ve a little big problem :) I ve a class, which contain an attribute called "visual" ( ezimage type ) and an xmlblock called "description"

I would like to insert image into xmlblocks... So the step ll be :

  • get url image storage and add this to a content object relationship
  • add manualy correct code to xmlblock

Or are there some others solutions?

Thanks

Philippe

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Damien Pobel

Thursday 02 September 2010 2:41:39 pm

Hi Philippe,

I guess the position of the image in the XML block depends on the editor will. If so, the best solution for you and the editor is probably to define a custom tag. Then the editor can place it where he wants.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Philippe VINCENT-ROYOL

Friday 03 September 2010 1:11:11 am

Thanks Damien,

I ll try and check some xml to result to see that.

Cheers

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.