Wednesday 02 November 2005 6:35:44 am
Hi, I am trying to correctly save the link title and link URL into an eZ object I build in my extension's PHP code. So far, I have only been able to save the title part; I am unable to save the url. For those who have access to it, I am basically using the same technique suggested on "learning eZ Publish 3" book, pages 137 - 138.
$linkAttributes=$attribs[$i]->Attributes();
//this gets saved
$attribs[$i]->setAttribute('data_text', $tb_title);
// I try to extract this to delve deeper into the contentobjectattribute's structure, but I think there must be an easier way ....
$oa=$attribs[$i]->Attribute('object');
$odm=$oa->dataMap();
// some code should go here involving $odm's content, but I think there should be an esier way ....
$attribs[$i]->store();
|