Using webclient.properties strings for custom model
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2006 10:27 AM
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:
2. Added similar to the following in /alfresco/extension/custom-webclient-config.xml
3. Creating a /alfresco/extension/webclient.properties that contains:
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
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
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2006 06:18 AM
You should use display-label-id, in your case:
<show-property name="dm:Data_Item" display-label-id="Data_Item"/>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2006 11:54 AM
That worked.
Many thanks,
Lakhdip
Many thanks,
Lakhdip
