<?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: Custom models not showing in Alfresco Share after adding them in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-models-not-showing-in-alfresco-share-after-adding-them/m-p/147007#M38933</link>
    <description>&lt;P&gt;Your configuration is not completed, you have to add also a specific config node-type elements in share-config-custom.xml for configuring edit and view forms for each content type you have defined inside the custom model.&lt;/P&gt;
&lt;P&gt;Add something similar to the following for each content type, in this case sc:doc type:&lt;/P&gt;

&lt;PRE&gt;&amp;lt;config evaluator="node-type" condition="sc:doc"&amp;gt;
      &amp;lt;forms&amp;gt;
         &amp;lt;form&amp;gt;
            &amp;lt;field-visibility&amp;gt;
               &amp;lt;show id="cm:name" /&amp;gt;
               &amp;lt;show id="cm:title" force="true" /&amp;gt;
               &amp;lt;show id="sc:relatedDocuments" /&amp;gt;               
            &amp;lt;/field-visibility&amp;gt;
         &amp;lt;/form&amp;gt;&lt;BR /&gt;      &amp;lt;forms&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Search forms must be defined in the config model-type element.&lt;/P&gt;
&lt;P&gt;For more information take a look at the documentation here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/share-config/#displaytypemetadata" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/share-config/#displaytypemetadata&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 09:39:19 GMT</pubDate>
    <dc:creator>openpj</dc:creator>
    <dc:date>2023-04-28T09:39:19Z</dc:date>
    <item>
      <title>Custom models not showing in Alfresco Share after adding them</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-models-not-showing-in-alfresco-share-after-adding-them/m-p/147006#M38932</link>
      <description>&lt;P&gt;I was following this tutorial (&lt;A href="https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#introduction" target="_blank" rel="nofollow noopener noreferrer"&gt;https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#introduction&lt;/A&gt;) that a lot of people recommended to me and for some reason, models and aspects aren't displayed in the rules section and the other ones it should be displayed.&lt;/P&gt;&lt;P&gt;I know Alfresco detects the file, because if I try to voluntarily mess the syntax, I get an error at the launch of Alfresco. Any idea how to try fix it? I tried to recreate a project with the same exact version as the tutorial, doesn't seem to change anything.&lt;/P&gt;&lt;P&gt;share-config-custom.xml :&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;alfresco-config&amp;gt;
   &amp;lt;!-- Document Library config section --&amp;gt;
   &amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
        &amp;lt;aspects&amp;gt;
            &amp;lt;!-- Aspects that a user can see --&amp;gt;
            &amp;lt;visible&amp;gt;
                &amp;lt;aspect name="sc:webable" /&amp;gt;
                &amp;lt;aspect name="sc:productRelated" /&amp;gt;
            &amp;lt;/visible&amp;gt;
            &amp;lt;!-- Aspects that a user can add. Same as "visible" if left empty --&amp;gt;
            &amp;lt;addable /&amp;gt;
            &amp;lt;!-- Aspects that a user can remove. Same as "visible" if left empty --&amp;gt;
            &amp;lt;removeable /&amp;gt;
        &amp;lt;/aspects&amp;gt;
      &amp;lt;types&amp;gt;
         &amp;lt;type name="cm:content"&amp;gt;
            &amp;lt;subtype name="sc:docs" /&amp;gt;
            &amp;lt;subtype name="sc:whitepaper" /&amp;gt;
         &amp;lt;/type&amp;gt;
         &amp;lt;type name="sc:doc"&amp;gt;
            &amp;lt;subtype name="sc:whitepaper" /&amp;gt;
         &amp;lt;/type&amp;gt;
      &amp;lt;/types&amp;gt;
   &amp;lt;/config&amp;gt;
&amp;lt;/alfresco-config&amp;gt;&lt;/PRE&gt;&lt;P&gt;scModel.xml :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;!-- Definition of new Model --&amp;gt;
&amp;lt;model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"&amp;gt;
    &amp;lt;!-- Optional meta-data about the model --&amp;gt;
    &amp;lt;description&amp;gt;Someco Model&amp;lt;/description&amp;gt;
    &amp;lt;author&amp;gt;Jeff Potts&amp;lt;/author&amp;gt;
    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;

    &amp;lt;!-- Imports are required to allow references to definitions in other models --&amp;gt;
    &amp;lt;imports&amp;gt;
        &amp;lt;!-- Import Alfresco Dictionary Definitions --&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" /&amp;gt;
        &amp;lt;!-- Import Alfresco Content Domain Model Definitions --&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" /&amp;gt;
    &amp;lt;/imports&amp;gt;

    &amp;lt;!-- Introduction of new namespaces defined by this model --&amp;gt;
    &amp;lt;namespaces&amp;gt;
        &amp;lt;namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" /&amp;gt;
    &amp;lt;/namespaces&amp;gt;
    &amp;lt;constraints&amp;gt;
        &amp;lt;constraint name="sc:campaignList" type="LIST"&amp;gt;
            &amp;lt;parameter name="allowedValues"&amp;gt;
                &amp;lt;list&amp;gt;
                    &amp;lt;value&amp;gt;Application Syndication&amp;lt;/value&amp;gt;
                    &amp;lt;value&amp;gt;Private Event Retailing&amp;lt;/value&amp;gt;
                    &amp;lt;value&amp;gt;Social Shopping&amp;lt;/value&amp;gt;
                &amp;lt;/list&amp;gt;
            &amp;lt;/parameter&amp;gt;
        &amp;lt;/constraint&amp;gt;
    &amp;lt;/constraints&amp;gt;

    &amp;lt;types&amp;gt;
        &amp;lt;!-- Enterprise-wide generic document type --&amp;gt;
        &amp;lt;type name="sc:doc"&amp;gt;
            &amp;lt;title&amp;gt;Someco Document&amp;lt;/title&amp;gt;
            &amp;lt;parent&amp;gt;cm:content&amp;lt;/parent&amp;gt;
            &amp;lt;associations&amp;gt;
                &amp;lt;association name="sc:relatedDocuments"&amp;gt;
                    &amp;lt;title&amp;gt;Related Documents&amp;lt;/title&amp;gt;
                    &amp;lt;source&amp;gt;
                        &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;
                        &amp;lt;many&amp;gt;true&amp;lt;/many&amp;gt;
                    &amp;lt;/source&amp;gt;
                    &amp;lt;target&amp;gt;
                        &amp;lt;class&amp;gt;sc:doc&amp;lt;/class&amp;gt;
                        &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;
                        &amp;lt;many&amp;gt;true&amp;lt;/many&amp;gt;
                    &amp;lt;/target&amp;gt;
                &amp;lt;/association&amp;gt;
            &amp;lt;/associations&amp;gt;
            &amp;lt;mandatory-aspects&amp;gt;
                &amp;lt;aspect&amp;gt;cm:generalclassifiable&amp;lt;/aspect&amp;gt;
            &amp;lt;/mandatory-aspects&amp;gt;
        &amp;lt;/type&amp;gt;

        &amp;lt;type name="sc:whitepaper"&amp;gt;
            &amp;lt;title&amp;gt;Someco Whitepaper&amp;lt;/title&amp;gt;
            &amp;lt;parent&amp;gt;sc:doc&amp;lt;/parent&amp;gt;
        &amp;lt;/type&amp;gt;

        &amp;lt;type name="sc:marketingDoc"&amp;gt;
            &amp;lt;title&amp;gt;Someco Marketing Document&amp;lt;/title&amp;gt;
            &amp;lt;parent&amp;gt;sc:doc&amp;lt;/parent&amp;gt;
            &amp;lt;properties&amp;gt;
                &amp;lt;property name="sc:campaign"&amp;gt;
                    &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                    &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                    &amp;lt;constraints&amp;gt;
                        &amp;lt;constraint ref="sc:campaignList" /&amp;gt;
                    &amp;lt;/constraints&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/properties&amp;gt;
        &amp;lt;/type&amp;gt;

    &amp;lt;/types&amp;gt;

    &amp;lt;aspects&amp;gt;
        &amp;lt;aspect name="sc:webable"&amp;gt;
            &amp;lt;title&amp;gt;Someco Webable&amp;lt;/title&amp;gt;
            &amp;lt;properties&amp;gt;
                &amp;lt;property name="sc:published"&amp;gt;
                    &amp;lt;type&amp;gt;d:date&amp;lt;/type&amp;gt;
                &amp;lt;/property&amp;gt;
                &amp;lt;property name="sc:isActive"&amp;gt;
                    &amp;lt;type&amp;gt;d:boolean&amp;lt;/type&amp;gt;
                    &amp;lt;default&amp;gt;false&amp;lt;/default&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/properties&amp;gt;
        &amp;lt;/aspect&amp;gt;

        &amp;lt;aspect name="sc:productRelated"&amp;gt;
            &amp;lt;title&amp;gt;Someco Product Metadata&amp;lt;/title&amp;gt;
            &amp;lt;properties&amp;gt;
                &amp;lt;property name="sc:product"&amp;gt;
                    &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                    &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;
                    &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                &amp;lt;/property&amp;gt;             
                &amp;lt;property name="sc:version"&amp;gt;
                    &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                    &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;
                    &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/properties&amp;gt;
        &amp;lt;/aspect&amp;gt;
    &amp;lt;/aspects&amp;gt;
&amp;lt;/model&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2023 09:32:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-models-not-showing-in-alfresco-share-after-adding-them/m-p/147006#M38932</guid>
      <dc:creator>LeCehlou</dc:creator>
      <dc:date>2023-04-24T09:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom models not showing in Alfresco Share after adding them</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-models-not-showing-in-alfresco-share-after-adding-them/m-p/147007#M38933</link>
      <description>&lt;P&gt;Your configuration is not completed, you have to add also a specific config node-type elements in share-config-custom.xml for configuring edit and view forms for each content type you have defined inside the custom model.&lt;/P&gt;
&lt;P&gt;Add something similar to the following for each content type, in this case sc:doc type:&lt;/P&gt;

&lt;PRE&gt;&amp;lt;config evaluator="node-type" condition="sc:doc"&amp;gt;
      &amp;lt;forms&amp;gt;
         &amp;lt;form&amp;gt;
            &amp;lt;field-visibility&amp;gt;
               &amp;lt;show id="cm:name" /&amp;gt;
               &amp;lt;show id="cm:title" force="true" /&amp;gt;
               &amp;lt;show id="sc:relatedDocuments" /&amp;gt;               
            &amp;lt;/field-visibility&amp;gt;
         &amp;lt;/form&amp;gt;&lt;BR /&gt;      &amp;lt;forms&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Search forms must be defined in the config model-type element.&lt;/P&gt;
&lt;P&gt;For more information take a look at the documentation here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/share-config/#displaytypemetadata" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/share-config/#displaytypemetadata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 09:39:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-models-not-showing-in-alfresco-share-after-adding-them/m-p/147007#M38933</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2023-04-28T09:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom models not showing in Alfresco Share after adding them</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-models-not-showing-in-alfresco-share-after-adding-them/m-p/147008#M38934</link>
      <description>&lt;P&gt;Thanks a lot, I was stuck on this for days !&amp;nbsp;&lt;/P&gt;&lt;P&gt;(by the way you missed a closing " / " in your forms XML tag, just writing it here for helping the ones with the same problem as me)&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 08:46:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-models-not-showing-in-alfresco-share-after-adding-them/m-p/147008#M38934</guid>
      <dc:creator>LeCehlou</dc:creator>
      <dc:date>2023-05-04T08:46:40Z</dc:date>
    </item>
  </channel>
</rss>

