cancel
Showing results for 
Search instead for 
Did you mean: 

Labels have $$ sign before and after label text

lock999
Champ in-the-making
Champ in-the-making
Hi,

I created a new custom model with many properties. While creating a new document with the custom type, in the "Modify Content Properties" screen, the labels are displayed with $$ before and after the label. Example: $$myLabel$$. Why is this happening and how do we resolve this?

Thanks
2 REPLIES 2

frederick
Champ in-the-making
Champ in-the-making
Hi,

The $$ sign indicates that a label for that type or property was not found.
Typically, when you declare a new model in a spring bean, you also provide a properties file containing labels.

Example:

Spring bean:

<bean id="dicom.dictionaryBootstrap" parent="dictionaryModelBootstrap"
      depends-on="dictionaryBootstrap">
      <property name="models">
         <list>
            <value>alfresco/module/common/dicom/DicomModel.xml</value>
         </list>
      </property>
      <property name="labels">
         <list>
            <value>alfresco/module/common/dicom/DicomModel</value>
         </list>
      </property>
   </bean>
Fragment of DicomModel.xml :

   <aspects>
      <aspect name="dcm:remoteyeEnabled">
         <associations>
            <association name="dcm:presentationStates">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association>
         </associations>
      </aspect>
   </aspects>
DicomModel.properties:

# Display labels for Dicom Model

dcm_dicommodel.description=Dicom Model

dcm_dicommodel.aspect.dcm_remoteyeEnabled.title=RemotEye display enabled
dcm_dicommodel.aspect.dcm_remoteyeEnabled.description=Enabled this item to be displayed in RemotEye WebStart
dcm_dicommodel.association.dcm_presentationStates.title=Presentation States
dcm_dicommodel.association.dcm_presentationStates.description=Associated Presentation States
dcm_dicommodel.association.dcm_transcribedReports.title=Transcribed Reports
dcm_dicommodel.association.dcm_transcribedReports.description=Transcribed Reports
dcm_dicommodel.association.dcm_dictatedReports.title=Dictated Reports
dcm_dicommodel.association.dcm_dictatedReports.description=Dictated Reports

Note that the file is called 'DicomModel.properties', but in the labels property, the file extension is not used.

lock999
Champ in-the-making
Champ in-the-making
Thanks a lot Frederick. This worked.