cancel
Showing results for 
Search instead for 
Did you mean: 

Using webclient.properties strings for custom model

lnagra
Champ in-the-making
Champ in-the-making
Hi,

I've created a custom model with a new content type (PIER) and when creating a new piece of content of type PIER, despite following the instructions on the developer guide wiki, all the custom properties show up as:
Data_Item etc. instead of Data Item

I have carried out the following:

1. Defined a model like the following:

… <parent>cm:content</parent>         <properties>            <property name="dm:Data_Item" >               <type>d:text</type>            </property>…‍‍‍‍‍‍‍‍‍

2. Added similar to the following in /alfresco/extension/custom-webclient-config.xml

…<config evaluator="node-type" condition="dm:proposal">      <property-sheet>               <show-property name="dm:Data_Item" displayLabelId="Data_Item"/>      </property-sheet>   </config>…‍‍‍‍‍‍‍‍‍

3. Creating a /alfresco/extension/webclient.properties that contains:

# Added for PIERData_Item=Data Item‍‍‍‍

However, when viewing the creating a piece of PIER content or looking at t PIER content details, the labels are not picked up (and displayed as Data_Item rather than Data Item).

Is there something I have forgotten to do or have done incorrectly? or
Is there something else I can add to help diagnose what is not working?

Many thanks.

Lakh
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
You should use display-label-id, in your case:

<show-property name="dm:Data_Item" display-label-id="Data_Item"/>‍‍‍

lnagra
Champ in-the-making
Champ in-the-making
That worked.

Many thanks,


Lakhdip