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

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

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

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
Highlighted
Customer

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

Hi:

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

Regards.

--C.

Highlighted
Member II

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

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>