<namespaces>
<namespace uri="http://www.alfresco.org/model/linksmodel/1.0" prefix="lnk"/>
</namespaces>
<types>
<type name="lnk:link">
<parent>cm:content</parent>
<properties>
<property name="lnk:title">
<title>Link Title</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="lnk:url">
<title>Link URL</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
<property name="lnk:description">
<title>Link Description</title>
<type>d:text</type>
<mandatory>false</mandatory>
</property>
</properties>
</type>
</types>
<aspects>
<aspect name="lnk:internal">
<title>Internal Link</title>
<properties>
<property name="lnk:isInternal">
<title>Is Internal</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
</aspects>
var test = companyhome.childByNamePath("sites").childByNamePath("test").childByNamePath("links");
var link = test.createNode("nom du lien", "lnk:link");
link.properties["lnk:title"] = "le titre du lien";
link.properties["lnk:description"] = "la description du lien";
link.properties["lnk:url"] = "http://www.google.fr";
link.save();
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.