I created a custom content type FaqEntry in OpenCMS (three fields – title, question, answer) and registered it. When I create a new file of that type and want to edit it, it shows the three fields there, but it doesn’t show their label, i.e. “Title”, “Question”, “Answer”. Do you have any idea as to why?
I created a custom content type FaqEntry in OpenCMS (three fields – title, question,
Share
So, what does it show then if not the labels you set/expect?
There are three possible reasons why the labels are not showing correctly:
properties file in your xsd
haven’t set the properties/labels
correctly in your properties file
the tomcat yet
The labels should be in the file workplace.properties under ‘classes’ in the the folder structure of your module, i.e. /system/modules/com.mydomain.www/classes/com/mydomain/www/workplace.properties
In your faqentry.xsd the reference should then be like this:
In the properties file, the labels need to have the proper mapping:
Last, the Tomcat needs to be restarted for the properties to take effect.