<?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 Share not displaying custom aspect. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/share-not-displaying-custom-aspect/m-p/126971#M34534</link>
    <description>&lt;P&gt;I have created a custom aspect,&amp;nbsp; and it's working fine.&amp;nbsp; My problem is in the share-config-custom.&amp;nbsp; So for the standard DocumetLibrary evaluator I have this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
  ....
  &amp;lt;aspects&amp;gt;
    &amp;lt;addable /&amp;gt; &amp;lt;!-- defaults to visible config --&amp;gt;
    &amp;lt;removeable /&amp;gt; &amp;lt;!-- defaults to visible config --&amp;gt;
  &amp;lt;/aspects&amp;gt;
&amp;lt;/config&amp;gt;&lt;/PRE&gt;&lt;P&gt;And when I go and click "Manage Aspects" in the repo browser,&amp;nbsp; it looks like all availabe aspects are listed, except of course, mine.&lt;/P&gt;&lt;P&gt;I can add it specifically like this:&lt;/P&gt;&lt;PRE&gt;        &amp;lt;aspects&amp;gt;
			&amp;lt;visible&amp;gt;
				&amp;lt;aspect name="damsasp:adHoc" /&amp;gt;  
			&amp;lt;/visible&amp;gt;
			&amp;lt;addable&amp;gt; 
				&amp;lt;aspect name="damsasp:adHoc" /&amp;gt;
			&amp;lt;/addable&amp;gt;
			&amp;lt;removeable&amp;gt;
				&amp;lt;aspect name="damsasp:adHoc" /&amp;gt;
			&amp;lt;/removeable&amp;gt;			
        &amp;lt;/aspects&amp;gt;&lt;/PRE&gt;&lt;P&gt;But then that is the ONLY aspect in the list.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do both?&amp;nbsp; Or am I going to have to manually add all the aspects?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 19:32:37 GMT</pubDate>
    <dc:creator>mangar</dc:creator>
    <dc:date>2021-10-25T19:32:37Z</dc:date>
    <item>
      <title>Share not displaying custom aspect.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-not-displaying-custom-aspect/m-p/126971#M34534</link>
      <description>&lt;P&gt;I have created a custom aspect,&amp;nbsp; and it's working fine.&amp;nbsp; My problem is in the share-config-custom.&amp;nbsp; So for the standard DocumetLibrary evaluator I have this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
  ....
  &amp;lt;aspects&amp;gt;
    &amp;lt;addable /&amp;gt; &amp;lt;!-- defaults to visible config --&amp;gt;
    &amp;lt;removeable /&amp;gt; &amp;lt;!-- defaults to visible config --&amp;gt;
  &amp;lt;/aspects&amp;gt;
&amp;lt;/config&amp;gt;&lt;/PRE&gt;&lt;P&gt;And when I go and click "Manage Aspects" in the repo browser,&amp;nbsp; it looks like all availabe aspects are listed, except of course, mine.&lt;/P&gt;&lt;P&gt;I can add it specifically like this:&lt;/P&gt;&lt;PRE&gt;        &amp;lt;aspects&amp;gt;
			&amp;lt;visible&amp;gt;
				&amp;lt;aspect name="damsasp:adHoc" /&amp;gt;  
			&amp;lt;/visible&amp;gt;
			&amp;lt;addable&amp;gt; 
				&amp;lt;aspect name="damsasp:adHoc" /&amp;gt;
			&amp;lt;/addable&amp;gt;
			&amp;lt;removeable&amp;gt;
				&amp;lt;aspect name="damsasp:adHoc" /&amp;gt;
			&amp;lt;/removeable&amp;gt;			
        &amp;lt;/aspects&amp;gt;&lt;/PRE&gt;&lt;P&gt;But then that is the ONLY aspect in the list.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do both?&amp;nbsp; Or am I going to have to manually add all the aspects?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 19:32:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-not-displaying-custom-aspect/m-p/126971#M34534</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2021-10-25T19:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Share not displaying custom aspect.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-not-displaying-custom-aspect/m-p/126972#M34535</link>
      <description>&lt;P&gt;I see typo in your config, it should be "&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;removable&lt;/STRONG&gt;&lt;/FONT&gt;" instead of "&lt;FONT color="#FF0000"&gt;removeable&lt;/FONT&gt;". Your approach seems correct but here are some additional details.&lt;/P&gt;
&lt;P&gt;The default ootb config for &lt;A href="https://docs.alfresco.com/content-services/latest/develop/share-ext-points/share-config/#configaspects" target="_self" rel="nofollow noopener noreferrer"&gt;DocumentLibrary&lt;/A&gt; is:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
  &amp;lt;aspects&amp;gt;
     &amp;lt;visible&amp;gt;
        &amp;lt;aspect name="cm:generalclassifiable" /&amp;gt;
        &amp;lt;aspect name="cm:complianceable" /&amp;gt;
        &amp;lt;aspect name="cm:dublincore" /&amp;gt;
        &amp;lt;aspect name="cm:effectivity" /&amp;gt;
        &amp;lt;aspect name="cm:summarizable" /&amp;gt;
        &amp;lt;aspect name="cm:versionable" /&amp;gt;
        &amp;lt;aspect name="cm:templatable" /&amp;gt;
        &amp;lt;aspect name="cm:emailed" /&amp;gt;
        &amp;lt;aspect name="emailserver:aliasable" /&amp;gt;
        &amp;lt;aspect name="cm:taggable" /&amp;gt;
        &amp;lt;aspect name="app:inlineeditable" /&amp;gt;
        &amp;lt;aspect name="cm:geographic" /&amp;gt;
        &amp;lt;aspect name="exif:exif" /&amp;gt;
        &amp;lt;aspect name="audio:audio" /&amp;gt;
        &amp;lt;aspect name="cm:indexControl" /&amp;gt;
        &amp;lt;aspect name="dp:restrictable" /&amp;gt;
     &amp;lt;/visible&amp;gt;

     &amp;lt;addable&amp;gt;
     &amp;lt;/addable&amp;gt;

     &amp;lt;removeable&amp;gt;
     &amp;lt;/removeable&amp;gt;
  &amp;lt;/aspects&amp;gt;

..
&amp;lt;/config&amp;gt;&lt;/PRE&gt;
&lt;P&gt;When you are adding your custom aspects, make sure no where 'replace="true"' is set in either your custom module or at '/shared/classes/alfresco/web-extension/' level.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;config evaluator="string-compare" condition="DocumentLibrary" &lt;STRONG&gt;replace="true"&lt;/STRONG&gt;&amp;gt;..&amp;lt;/config&amp;gt;&lt;/PRE&gt;
&lt;P&gt;If above setting is set, out of the box configuration will get replaced.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To keep ootb aspects and your custom aspects together. You can (read the comments):&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;&amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
&lt;/STRONG&gt;  &amp;lt;aspects&amp;gt;
	&lt;STRONG&gt;&amp;lt;!--
	  Aspects that a user can see in UI.
	  Used by Rules, aspects are the listed aspects for rule's "has-aspect" action condition.
	--&amp;gt;&lt;/STRONG&gt;
	&amp;lt;visible&amp;gt;
		&amp;lt;aspect name="damsasp:adHoc" /&amp;gt;
	&amp;lt;/visible&amp;gt;
	&lt;STRONG&gt;&amp;lt;!--
	  Aspects that a user can add in UI.
	  Used by Rules, aspects are the listed aspects for rule's "add-features" action.
	  Same as "visible" if left empty.
	--&amp;gt;&lt;/STRONG&gt;
	&amp;lt;addable&amp;gt;
           &amp;lt;aspect name="damsasp:adHoc" /&amp;gt;
	&amp;lt;/addable&amp;gt;
	&lt;STRONG&gt;&amp;lt;!--
	  Aspects that a user can remove in UI.
	  Used by Rules, aspects are the listed aspects for rule's "remove-features" action.
	  Same as "visible" if left empty
	--&amp;gt;&lt;/STRONG&gt;
	&amp;lt;removable&amp;gt;
            &amp;lt;aspect name="damsasp:adHoc" /&amp;gt;
	&amp;lt;/removable&amp;gt;
  &amp;lt;/aspects&amp;gt;

&amp;lt;/config&amp;gt;

&lt;STRONG&gt;OR&lt;/STRONG&gt;

&amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
  &amp;lt;aspects&amp;gt;
	&amp;lt;!--
	  Aspects that a user can see in UI.
	  Used by Rules, aspects are the listed aspects for rule's "has-aspect" action condition.
	--&amp;gt;
	&amp;lt;visible&amp;gt;
		&amp;lt;aspect name="damsasp:adHoc" /&amp;gt;
	&amp;lt;/visible&amp;gt;
	&amp;lt;!--
	  Aspects that a user can add in UI.
	  Used by Rules, aspects are the listed aspects for rule's "add-features" action.
	  Same as "visible" if left empty.
	--&amp;gt;
	&amp;lt;addable&amp;gt;
	&amp;lt;/addable&amp;gt;
	&amp;lt;!--
	  Aspects that a user can remove in UI.
	  Used by Rules, aspects are the listed aspects for rule's "remove-features" action.
	  Same as "visible" if left empty
	--&amp;gt;
	&amp;lt;removable&amp;gt;
	&amp;lt;/removable&amp;gt;
  &amp;lt;/aspects&amp;gt;

&amp;lt;/config&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Try fixing your config and see if it works.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 00:15:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-not-displaying-custom-aspect/m-p/126972#M34535</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-10-26T00:15:13Z</dc:date>
    </item>
  </channel>
</rss>

