cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide properties in custom content model

lcandido
Champ in-the-making
Champ in-the-making
I've successfully created several custom models, but when trying to do not show some properties in Alfresco Explorer interface, once these are control properties not to be shown to users, it was impossible to use them in JavaScript code. When I look for them using the Node Browser, I didn't found any in the properties list. In this list there are several itens that do not are shown in user interface, so it must exist some way to hide them when desired.

Note: What I did: The properties were defined in  …extension/model/contentModel/<mymodel>.xml file, but not listed at tag config evaluator="node-type"/<property-sheet>/show property in  …extension/web-client-config-custom.xml.

Thanks for any help,
3 REPLIES 3

yogeshpj
Star Contributor
Star Contributor
Those properties are mandatory or not ? If they are not mandatory then they would not be set on content until they have been set explicitly.This may be the reason that you are not able to see those properties in node browser too.

lcandido
Champ in-the-making
Champ in-the-making
I've set the properties as not mandatory because sometimes they don't have any value. If I set them as mandatory and insert a dummy value in these cases, will the interface work as desired?

yogeshpj
Star Contributor
Star Contributor
Yes , If you are setting non-mondatory properties with some dummy values then you will be able to see it in Node browser and they will also available in alfresco explorer if you want to show them.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.