cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Metadata on Alfresco Share 3.4d

realityonline
Champ in-the-making
Champ in-the-making
Hi There.. I have been searching around the forums and I have implemented what is required on my share-config-custom.xml. However, I am still failing to hide the Meta Data. Im trying to hide items such as Creator, Size, MimeTypes e..t..c

Can someone please take a look at my configuration and advise what i missed out?

Thanks in advance..





<?xml version="1.0" encoding="UTF-8"?>
<alfresco-config>


   <!– Repository Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <!–
         Whether the link to the Repository Library appears in the header component or not.
      –>
      <visible>true</visible>
     <root-node>workspace://SpacesStore/6125f780-cca3-4asd-232f-12311c22dfc1</root-node>
     
      <tree>
          <evaluate-child-folders>false</evaluate-child-folders>
      </tree>
    
   </config>




   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>


   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">
      <aspects>
            <!– Aspects that a user can see –>
            <visible>
            <aspect name="test:testdetail"/>
            </visible>
      </aspects>
   </config>
   
   
   <config  evaluator="node-type" condition="cm:content" replace="true">
      <forms>
            <!– Default form configuration used on the document details and edit metadata pages –>
          <form>
               <field-visibility>
            
                  <show id="test:field1a"/>
                  <show id="test:field1b"/>                 
                
               <hide id="cm:creator"/>
               <hide id="cm:name"/>
              
               
               <hide id="cm:title"/>
               <hide id="cm:name"/>
               <hide id="cm:description"/>
               <hide id="mimetype"/>
               <hide id="cm:author"/>
               <hide id="size"/>
               <hide id="cm:creator"/>
               <hide id="cm:created"/>
               <hide id="cm:modifier"/>
               <hide id="cm:modified"/>
           
            </field-visibility>
           </form>   
           <!– Document Library pop-up Edit Metadata form –>
           <form id="doclib-simple-metadata">
              <field-visibility>
            
                  <show id="test:field1a"/>
                  <show id="test:field1b"/>                 
                
               <hide id="cm:creator"/>
               <hide id="cm:name"/>
              
               
               <hide id="cm:title"/>
               <hide id="cm:name"/>
               <hide id="cm:description"/>
               <hide id="mimetype"/>
               <hide id="cm:author"/>
               <hide id="size"/>
               <hide id="cm:creator"/>
               <hide id="cm:created"/>
               <hide id="cm:modifier"/>
               <hide id="cm:modified"/>
              
               </field-visibility>
               <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            </form>
   
            <!– Document Library Inline Edit form –>
            <form id="doclib-inline-edit">
           
               <field-visibility>
              
                  <show id="test:field1a"/>
                  <show id="test:field1b"/>                 
                
               <hide id="cm:creator"/>
               <hide id="cm:name"/>
              
               
               <hide id="cm:title"/>
               <hide id="cm:name"/>
               <hide id="cm:description"/>
               <hide id="mimetype"/>
               <hide id="cm:author"/>
               <hide id="size"/>
               <hide id="cm:creator"/>
               <hide id="cm:created"/>
               <hide id="cm:modifier"/>
               <hide id="cm:modified"/>

              
           
               </field-visibility>
            </form>
           
   
         </forms>
   </config>
  
  
    <config evaluator="string-compare" condition="AdvancedSearch" replace="true">
      <advanced-search>
         <forms>            
            <form id="search11" label="Test" description="Test">cm:content</form>
         </forms>         
      </advanced-search>   
   </config>   
               
   <config evaluator="model-type" condition="cm:content">
      <forms>
         <form id="search11">         
            <field-visibility>
                  <show id="attune:field1a" force="true" />
                  <show id="attune:field1b" force="true" />                 

               </field-visibility>
            
            <appearance>
            <set id="myborder" appearance="fieldset" label="Tests"   />
                     
               <field id="attune:field1a" label="Test1" set="myborder">
                        <control>
                        <control-param name="forceEditable">true</control-param>
                     </control>
                     </field>
                     
               <field id="attune:field1b" label="Test2" set="myborder">
                        <control>
                        <control-param name="forceEditable">true</control-param>
                     </control>
                     </field>                     
               
               </appearance>   
            
         </form>
      </forms>
   </config>

   
</alfresco-config>

3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator
Hello,

hmm, this configuration seems ok (although you would not need to explicitly hide every field - just don't include a "show" element for a field and your set). Do you have any other configuration that might conflict with this? Are you viewing documents of the correct type (if they are not exactly cm.content, then the configuration does not apply)?

Regards
Axel

realityonline
Champ in-the-making
Champ in-the-making
Hello,

hmm, this configuration seems ok (although you would not need to explicitly hide every field - just don't include a "show" element for a field and your set). Do you have any other configuration that might conflict with this? Are you viewing documents of the correct type (if they are not exactly cm.content, then the configuration does not apply)?

Regards
Axel

Thanks for your reply.. I am trying to hide the default metadata that is associated with any types of document. Technically, I would only require to have the Name and Title.

Can I just show cm:name and cm:title and ignore the rest?

realityonline
Champ in-the-making
Champ in-the-making
I just tried adding only " <show id="cm:name" />"  and it worked for Alfresco Share 4.0 but it still does not work for 3.4d.

Any ideas?