cancel
Showing results for 
Search instead for 
Did you mean: 

Hide some properties in Alfresco Share

krdian
Champ in-the-making
Champ in-the-making
Hello

I'm trying to hide some fields in properties list, for example Size, Mimetype. I have configured share-config-custom.xml as follow:
<alfresco-config>


<config evaluator="node-type" condition="content">
   <property-sheet>
      <show-property name="title" show-in-edit-mode="false" show-in-view-mode="false" />
      <show-property name="description" show-in-edit-mode="false" show-in-view-mode="false" />
      <show-property name="size" show-in-edit-mode="false" show-in-view-mode="false" />
      <show-property name="encoding" show-in-edit-mode="false" show-in-view-mode="false" />
      <show-property name="mimetype" show-in-edit-mode="false" show-in-view-mode="false" />
   </property-sheet>
</config>
</alfresco-config>

But these properties still appears in property list as You cen see on a picture


[img]http://voipnews.pl/~krdian/alfresco-metadata.png[/img]

How i can hide them ?

Thanks in advice

Konrad
6 REPLIES 6

bisana
Champ on-the-rise
Champ on-the-rise
In my case , I wanted to view only Custom Type properties
I did as follow in the share-config-custom.xml
 <!–               Config evaluator for MyCustomType    –>     <config evaluator="node-type" condition="sc:mycustomtype">      <forms>     <form>         <field-visibility>           <show id="cm:name" />      <show id="cm:title" />           <show id="cm:description" />                     <!– Metadata for  custom content type–>      <show id="sc:nameofpartyone"/>      <show id="sc:nameofpartytwo"/>      <show id="sc:nameofpartythree"/>               <show id="sc:project"/>      <show id="sc:purpose"/>            </field-visibility>     </form>    </forms>   </config>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
It worked for me

krdian
Champ in-the-making
Champ in-the-making
In my case , I wanted to view only Custom Type properties
I did as follow in the share-config-custom.xml

Do You have cm:content as a parent for sc:mycustomtype ?

bisana
Champ on-the-rise
Champ on-the-rise
Yes , it has cm has parent

jpfi
Champ in-the-making
Champ in-the-making
Hi,
just use <hide> element in the form config of your custom type or cm:content in general: http://wiki.alfresco.com/wiki/Forms#hide
cheers, jan

krdian
Champ in-the-making
Champ in-the-making
Yes , it has cm has parent

I just removed property-sheet section and use only show in forms and now works fine.

Thank You bisana 🙂

bisana
Champ on-the-rise
Champ on-the-rise
Hi
It will be great if you can post a copy of the file, so that new comers like me can read it and try out
Thanks
Joseph John