Hide some properties in Alfresco Share

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2012 07:09 AM
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
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
Labels:
- Labels:
-
Archive
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2012 07:30 AM
In my case , I wanted to view only Custom Type properties
I did as follow in the share-config-custom.xml
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2012 08:29 AM
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 ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2012 08:52 AM
Yes , it has cm has parent

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2012 09:33 AM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2012 11:40 AM
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 🙂

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2012 10:38 PM
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
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
