<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add a custom aspect to a default type in Alfresco 5.2 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/add-a-custom-aspect-to-a-default-type-in-alfresco-5-2/m-p/58140#M20780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was adding my custom aspect to alfresco node comments. In Share, if you open a document to edit, then you will see the comments section on the bottom, through which you can add/edit/delete one or more comments.&lt;/P&gt;&lt;P&gt;From this I believe we could add custom aspects to any node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are Rest&amp;nbsp;API calls that could add (our custom) aspect to an (already) existing node. I think there is a node id for your object/document. Once you know this, then below is some code extract...&lt;/P&gt;&lt;P&gt;This &lt;STRONG&gt;works in 5.2 (community) and above&lt;/STRONG&gt;. I am not sure how much of this Rest APIs are available for 5.1 or earlier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that there could be many more ways to accomplish what you want. I know only this way.&lt;/P&gt;&lt;P&gt;For example, if you use CMIS api, there is a way to attach an aspect while document creation itself. I had attached to our custom (document) type, not to the default type. Well, I wonder why not attach an aspect to the native/default types, as long as the aspect is defined and deployed to the repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, following is one way to do it through Rest API on an existing document (node). For this, your document had to be created already, and it has the node_id therefore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;restApiAccessPoint&lt;/STRONG&gt; is "/alfresco/api/-default-/public/alfresco/versions/1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;nodeId&lt;/STRONG&gt; is the id of the document, in my case it was the id of the comment object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;String jsonString = "{\"aspectNames\":[\"slo&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;perationInfo\"],\"properties\": {\"slo:lo_operation_user\":\"" + loUser + "\",\"slo:lo_operation_info\":\"Added\"}}";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;restUrl = new URL ( (this.repoHost + this.restApiAccessPoint + "/nodes/" + nodeId) );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;HttpPut putFunction = new HttpPut(restUrl.toString());&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt; try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; StringEntity entity = new StringEntity(jsonString);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; putFunction.setEntity(entity);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; putFunction.setHeader("Accept", "application/json");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; putFunction.setHeader("Content-type", "application/json");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;response = httpClient.execute(putFunction);&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;int status_code = response.getStatusLine().getStatusCode();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;if (status_code != 200) {&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;catch....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my &lt;STRONG&gt;custom aspect definition&lt;/STRONG&gt; that is deployed to the repo (using AMP). (names slightly changed for privacy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;lt;aspect name="slo&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;perationInfo"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;LO operation information&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;properties&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="slo:lo_operation_date"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;Date of operation&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:datetime&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;property name="slo:lo_operation_user"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;LO User&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="slo:lo_operation_info"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;Operation&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/properties&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt; &amp;lt;/aspect&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2018 12:05:18 GMT</pubDate>
    <dc:creator>sepgs2004</dc:creator>
    <dc:date>2018-10-26T12:05:18Z</dc:date>
    <item>
      <title>Add a custom aspect to a default type in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-a-custom-aspect-to-a-default-type-in-alfresco-5-2/m-p/58139#M20779</link>
      <description>Hi. I have to add a custom aspect to the default type cm&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson in Alfresco 5.2. How can I do this?</description>
      <pubDate>Thu, 25 Oct 2018 19:25:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-a-custom-aspect-to-a-default-type-in-alfresco-5-2/m-p/58139#M20779</guid>
      <dc:creator>denny_terner</dc:creator>
      <dc:date>2018-10-25T19:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add a custom aspect to a default type in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-a-custom-aspect-to-a-default-type-in-alfresco-5-2/m-p/58140#M20780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was adding my custom aspect to alfresco node comments. In Share, if you open a document to edit, then you will see the comments section on the bottom, through which you can add/edit/delete one or more comments.&lt;/P&gt;&lt;P&gt;From this I believe we could add custom aspects to any node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are Rest&amp;nbsp;API calls that could add (our custom) aspect to an (already) existing node. I think there is a node id for your object/document. Once you know this, then below is some code extract...&lt;/P&gt;&lt;P&gt;This &lt;STRONG&gt;works in 5.2 (community) and above&lt;/STRONG&gt;. I am not sure how much of this Rest APIs are available for 5.1 or earlier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that there could be many more ways to accomplish what you want. I know only this way.&lt;/P&gt;&lt;P&gt;For example, if you use CMIS api, there is a way to attach an aspect while document creation itself. I had attached to our custom (document) type, not to the default type. Well, I wonder why not attach an aspect to the native/default types, as long as the aspect is defined and deployed to the repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, following is one way to do it through Rest API on an existing document (node). For this, your document had to be created already, and it has the node_id therefore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;restApiAccessPoint&lt;/STRONG&gt; is "/alfresco/api/-default-/public/alfresco/versions/1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;nodeId&lt;/STRONG&gt; is the id of the document, in my case it was the id of the comment object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;String jsonString = "{\"aspectNames\":[\"slo&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;perationInfo\"],\"properties\": {\"slo:lo_operation_user\":\"" + loUser + "\",\"slo:lo_operation_info\":\"Added\"}}";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;restUrl = new URL ( (this.repoHost + this.restApiAccessPoint + "/nodes/" + nodeId) );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;HttpPut putFunction = new HttpPut(restUrl.toString());&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt; try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; StringEntity entity = new StringEntity(jsonString);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; putFunction.setEntity(entity);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; putFunction.setHeader("Accept", "application/json");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; putFunction.setHeader("Content-type", "application/json");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;response = httpClient.execute(putFunction);&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;int status_code = response.getStatusLine().getStatusCode();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;if (status_code != 200) {&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;catch....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my &lt;STRONG&gt;custom aspect definition&lt;/STRONG&gt; that is deployed to the repo (using AMP). (names slightly changed for privacy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;lt;aspect name="slo&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;perationInfo"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;LO operation information&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;properties&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="slo:lo_operation_date"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;Date of operation&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:datetime&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;property name="slo:lo_operation_user"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;LO User&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="slo:lo_operation_info"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;Operation&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/properties&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999; font-family: 'trebuchet ms', geneva, sans-serif;"&gt; &amp;lt;/aspect&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 12:05:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-a-custom-aspect-to-a-default-type-in-alfresco-5-2/m-p/58140#M20780</guid>
      <dc:creator>sepgs2004</dc:creator>
      <dc:date>2018-10-26T12:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add a custom aspect to a default type in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-a-custom-aspect-to-a-default-type-in-alfresco-5-2/m-p/58141#M20781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can add custom aspects to nodes that are instances of out-of-the-box types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can investigate using the REST API as was suggested. The easiest way to do it, in my opinion, is via the JavaScript Console. (If you have not already installed the JavaScript Console you really should. It is very helpful).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to add aspects automatically to nodes when they are created, you can use a rule on a folder. This works great for instances of cm:folder and cm:content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to add aspects automatically to instances of cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson, you might want to investigate writing a behavior that is bound to the cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can learn more about custom types, custom aspects, and behaviors and other topics in my tutorials: &lt;A class="jivelink11" href="https://ecmarchitect.com/alfresco-developer-series" title="https://ecmarchitect.com/alfresco-developer-series" rel="nofollow noopener noreferrer"&gt;https://ecmarchitect.com/alfresco-developer-series&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 17:14:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-a-custom-aspect-to-a-default-type-in-alfresco-5-2/m-p/58141#M20781</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-10-28T17:14:17Z</dc:date>
    </item>
  </channel>
</rss>

