cancel
Showing results for 
Search instead for 
Did you mean: 

Showing metadata on the create content page

ganmaku
Champ on-the-rise
Champ on-the-rise
Hi everyone,

I have changed "share-form-config.xml" file to include the metadata of custom type in order to show them while creating the new content in the Share application.

Before doing that, I imposed the business rule on the folder to use my custom type.

But while creating new content through Share application, it does not show metadata of the custom type: it shows up for "cm:content" type.

Please advise me what else configuration do I need to make?
1 REPLY 1

ganmaku
Champ on-the-rise
Champ on-the-rise
Hi everyone,

I have changed "share-form-config.xml" file to include the metadata of custom type in order to show them while creating the new content in the Share application.

Before doing that, I imposed the business rule on the folder to use my custom type.

But while creating new content through Share application, it does not show metadata of the custom type: it shows up for "cm:content" type.

Please advise me what else configuration do I need to make?


Hello Team,

I have applied "Specialize type" business rule on the folder via Alfresco Webclient.

Then, I have modified "share-config-custom.xml" to include my custom model with its custom metadata in order to show them in Alfresco Share create content screen.
<!–
         Used by the "Change Type" action

         Define valid subtypes using the following example:–>
            <type name="cm:content">
               <subtype name="rcd:document" />
            </type>

     <!–    Remember to also add the relevant i18n string(s):
            cm_mysubtype=My SubType
      –>
      <types>
         <type name="cm:content">
         </type>
      
       <type name="rcd:document">
         </type>

         <type name="cm:folder">
         </type>
      </types>


<config evaluator="model-type" condition="rcd:document">
      <forms>
         <!– Default Create Content form –>
         <form>
            <field-visibility>
                      
            <!–ganesh starts–>

               <show id="rcd:theme"/>
               <show id="rcd:soustheme"/>
               <show id="rcd:zone"/>
               <show id="rcd:pays"/>
               <show id="rcd:manufacturier"/>

           <!–ganesh ends–>
          
            </field-visibility>
            <appearance>
           
            <!–ganesh starts–>
            <field id="rcd:theme">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
            <field id="rcd:soustheme">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
            <field id="rcd:zone">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
            <field id="rcd:pays">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
            <field id="rcd:manufacturier">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
           
           
            <!–ganesh ends–>
           
             
            </appearance>
         </form>
        
      </forms>
   </config>

When I am clicking on the Create content page, it is still displaying the metadata for default content model and not for my custom model.

Please tell me what else configuration needs to be done to show up the metadata of my custom type.

Any help would be highly beneficial for me.