<!– Définition du type publication –>
<type name="mm:publication">
<title>Publication</title>
<parent>cm:content</parent>
<properties>
<property name="mm:isbn">
<title>Numéro ISBN </title>
<type>d:text</type>
<!–<mandatory>true</mandatory>–>
</property>
<property name="mm:prix">
<title>prix</title>
<type>d:text</type>
<!–<mandatory>true</mandatory>–>
</property>
<property name="mm:caracteristique">
<title>Caracteristique</title>
<type>d:text</type>
<!–<mandatory>true</mandatory>–>
</property>
</properties>
<associations>
<association name="mm:association">
<title>Association </title>
<target>
<class>mm:publication</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
Voic l'extrait de mon script PHP, je suis positionné sur le noeud $d_node…………………….
// Nom du fichier
$doc = $d_child->child->cm_name;
echo $doc.'</br>';
//recupération des properties
$prop = $d_node->properties;
echo 'Titre : '.$prop['{http://www.alfresco.org/model/content/1.0}title'].'</br>';
echo 'Description : '.$prop['{http://www.alfresco.org/model/content/1.0}description'].'</br>';
echo 'Auteur : '.$prop['{http://www.alfresco.org/model/content/1.0}author'].'</br>';
echo 'Prix : '.$prop['{cetmef.model}prix'].'</br>';
echo 'N° ISBN: '.$prop['{cetmef.model}isbn'].'</br>';
echo 'Caractéristique : '.$prop['{cetmef.model}caracteristique'].'<br>';
//recuperation du fichier associé
$as = $d_node->associations;
…………….
Je récupère bien toutes les propriétés ( title, description ….)Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.