AnsweredAssumed Answered

How to hide metadata from a custom type.

Question asked by cristinamr Moderator on Nov 9, 2010
Latest reply on Nov 15, 2010 by cristinamr
Hi.

I've this custom model in Share:

<type name ="am:expjuridico">
            <title>Expedientes</title>
            <parent>cm:folder</parent>
            
            <properties>
            
            </properties>
         
         </type>

Anohter side, I've this aspect:
<aspects>
      <aspect name="am:datosGenericosExp">
         <title>Datos Genéricos</title>
         <properties>
         
            <property name="am:asunto">
               <title>Asunto</title>
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
….

In the share-config-custom.xml, I've this code:
 <config evaluator="node-type" condition="am:expjuridico">
      <forms>
         <!– Default form configuration used on the document details and edit metadata pages –>
         <form>
            <field-visibility>
         
            <!– Datos modelo ARDOC - Expedientes Jurídicos –>
            <show id="am:asunto" />
….

<config evaluator="node-type" condition="cm:folder">
      <forms>
         <form id="rm">
            <field-visibility>
            <hide id="cm:name"/>
            <hide id="cm:title"/>
            <hide id="cm:description" />
…..

I want to hide the cm:folder's metadatas (cm:name, cm:description … ). I've tried this:

- I create a folder.
- I change the folder's type to "expjuridico".
- I apply the aspect "datosGenericosExp".

But the field cm:name, for example, it shows and I can't hide it. What Can I do for hide the fields from cm:folder ?

Any ideas? :(

Thanks.

Outcomes