Opencms6b3 usage notes

Source: Internet
Author: User

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;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.