A long time ago, I studied the articles published in the open collaboration forum in opencms and used them to increase the number of articles.
Http://www.clinux.org/forum/showthread.php? Threadid = 5964
I have been studying opencms during this time and made some notes to share them with you.
Opencms Usage Note
1. Generation of Chinese modules
Follow the steps described in the opemcms document. It is worth noting that:
(1) There are some changes in step 4 of adjusting of the basic folder structure. Set the new directory structure to/org/opencms/workplace, instead of/COM/opencms/workplace /;
(2) Use the native2ascii command to convert the workplace_zh.properties file to unicode encoding, and put it in the $ tomcat_home/webapps/opencms/WEB-INF/classes/org/opencms/workplace directory. Ensure that workplace_zh.properties is ANSI encoded before conversion;
2. Export the Chinese module
When exporting the org. opencms. locales. ZH module, the zip file is stored in the $ tomcat_home/webapps/opencms/packages/modules directory by default;
3. Import the Chinese module
(1) follow the normal steps to import the org. opencms. localse. ZH module;
(2) Use the opencms Resource Manager to create the ZH subdirectory under the/system/workplace/locales directory;
(3) Replace workplace_zh.properties with the Unicode-encoded workplace_zh.properties;
(4) Publish the entire application;
(5) Restart tomcat;
4. Solve the Problem of htmlarea. i18n. tooltips
Problem description: A JavaScript error occurs when editing an XML file. The HTML editor cannot be displayed;
Solution: Use the opencms Resource Manager to enter the/system/workplace/resources/Editors/htmlarea directory, and create ZH under the Lang, plugins/contextmenu, plugins/spellchecker, and plugins/tableoperations directories. JS file. The content is copied from the en. JS file. Release the application to solve the problem;
5. Solve the Problem of calendar. _ TT. def_date_format
Problem description: When editing an XML file, you cannot click the time setting icon to bring up the time setting window;
Solution: Use the opencms Resource Manager to edit the/system/workplace/resources/components/js_calendar/lang/calendar_zh.properties file and delete the original content, copy the content of $ tomcat_home/webapps/opencms/resources/components/js_calendar/lang/calendar_zh.properties. Publish an application;