Monday 15 March 2010 7:30:49 am
Hi there, It looks like my problem isn't so funny :p I'm looking at the source code of ezodf and I saw the wonderfull eZContentObject::addContentObjectRelation() method. I think it could save my life but I still don't understand how to use it. I created my pictures, stored their content object id and tryed a pretty looking :
$o->addContentObjectRelation($object); Where $o is the newly created "Article" where my XMLBlock is written. But it don't still works... The pictures appears in the related objects but the href attribute of the embed tag is still empty. NB : I also tryed
$o->addContentObjectRelation($object, false, 0, eZContentObject::RELATION_EMBED); Could someone help me ? Thanks in advance, Damien
|