cancel
Showing results for 
Search instead for 
Did you mean: 

Can't hide properties

richardeb
Champ in-the-making
Champ in-the-making
Hello,

I have just added a custom content model to my Alfresco installation

Something like this:

<blockcode>
<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.alfresco.org/model/dictionary/1.0" name="test:myModel">
   <description></description>
   <author></author>
   <version>1.0</version>
   <imports>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>
   <namespaces>
      <namespace uri="test.myModel" prefix="test"/>
   </namespaces> 
   <types>  

      <type name="test:model1">
         <title></title>
         <parent>cm:folder</parent>
         <archive>true</archive>
         <properties>
            <property name="testSmiley Tonguerop1">
               <title>test</title>
               <description>test</description>
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
</blockcode>

Than I added a "test:model1" folder over the CMIS interface. Unfortunally every property of the "test:model1" is shown when I open the newly created folder in Alfresco share. But I'd like to disable the custom propertys in the edit mode.

I already tried adding this code to the web-client-config-custom.xml But this has no effect

<blockcode>
<config evaluator="node-type" condition="test:model1">
   <property-sheet>
      <show-property name="testSmiley Tonguerop1" show-in-edit-mode="false" />
   </property-sheet>
</config>

</blockcode>

Can you help me please?
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
If you are trying to configure Alfresco Share, your UI config goes in share-config-custom.xml. The web-client-config-custom.xml file is only for the old Alfresco Explorer client.

For help with custom content models and Alfresco Share UI configuration, see: http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html

Jeff

richardeb
Champ in-the-making
Champ in-the-making
thx this was the solution