cancel
Showing results for 
Search instead for 
Did you mean: 

How to add one property inside the aspect in the out of the alfresco content model i.e.applicationModel.xml

chaituu
Champ in-the-making
Champ in-the-making

I want to add one property inside the aspect in the out of the alfresco content model i.e.applicationModel.xml;we are using alfresco 5.2;

so how to extend this model and add this property inside this aspect?.

<aspect name="app:linked">          <title>Marker aspect to indicate that the node has been linked.</title>       </aspect>     below property shouldbe addded inside above aspect.      <properties>             <property name="app:links">                 <title>Links:::</title>                 <type>d:noderef</type>                 <multiple>true</multiple>             </property>         </properties>
2 REPLIES 2

cesarista
World-Class Innovator
World-Class Innovator

Hi:

You can create a custom aspect (with your custom property), that inherits the out of the box aspect.

Regards.

--C.

chaituu
Champ in-the-making
Champ in-the-making

Please review the custom model.

<model name="customlink:applicationmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

<published>2018-06-20</published>
<version>1.0</version>

<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/application/1.0" prefix="app"/>
</imports>

<namespaces>
<namespace uri="http://www.ccccc.com/model/xxxxxx-customlink/2.0" prefix="customlink"/>
</namespaces>


<aspects>
<aspect name="customlink:linked">
<parent>app:linked</parent>
<properties>
<property name="customlink:links">
<title>Links</title>
<type>d:noderef</type>
<multiple>true</multiple>
</property>
</properties>
</aspect>
</aspects>

</model>