Friday 29 May 2009 8:06:12 am
Hello, I want to kown how can i get the value of an attribute of the datatype selection by programmation?
$v=eZContentObjectTreeNode::subTreeByNodeID(
array( 'ClassFilterType' => 'include',
'ClassFilterArray' => array('newsletter'),// identifiant of the content classe
'Depth' => 1,
'DepthOperator' => 'eq'),
233//node_id of the parent
);
foreach ( $v as $o )
{
$dataMap =& $o->dataMap();
$nom =& $dataMap['country']->content();
echo $nom;
}
the attribute name "nom" have the datatype "selection ". i try with the function content() but i have like the result "array" thanks in advance.
The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.
Albert Einstein
|