OpenCMS6b3使用筆記

來源:互聯網
上載者:User

很久以前研究OpenCMS時在開放協作論壇發的文章,拿來充個數。

http://www.clinux.org/forum/showthread.php?threadid=5964

這段時間一直在研究OPENCMS,做了一點筆記,拿出來與大家共用
OpenCMS使用手記
1. 關於中文模組的產生
按照OpemCMS文檔上介紹的步驟。值得注意的是:
(1) 在Adjusting of the basic folder structure的第四步有一些變化,將新的目錄結構設定為/org/opencms/workplace,而非/com/opencms/workplace/;
(2) 使用native2ascii命令將workplace_zh.properties檔案轉換成unicode編碼,並放到$TOMCAT_HOME/webapps/opencms/WEB-INF/classes/org/opencms/workplace目錄下。注意在轉換前保證workplace_zh.properties是ansi編碼;
2. 關於中文模組的匯出
匯出org.opencms.locales.zh模組時,zip檔案預設放在$TOMCAT_HOME/webapps/opencms/packages/modules目錄下;
3. 中文模組的匯入
(1) 按照正常步驟匯入org.opencms.localse.zh模組;
(2) 使用OpenCMS資源管理員在/system/workplace/locales目錄下建zh子目錄;
(3) 替換workplace_zh.properties的內容為unicode編碼的workplace_zh.properties內容;
(4) 發布整個應用;
(5) 重啟Tomcat;
4. 關於HTMLArea.I18N.tooltips問題的解決
問題描述:在編輯XML檔案時出現JavaScript錯誤,不能顯示Html編輯器;
解決方案:使用OpenCMS資源管理員進入/system/workplace/resources/editors/htmlarea目錄,在lang,plugins/ContextMenu,plugins/SpellChecker,plugins/TableOperations目錄下建立zh.js檔案,內容複寫自同目錄下的en.js檔案。發布應用即可解決問題;
5. 關於Calendar._TT.DEF_DATE_FORMAT問題的解決
問題描述:在編輯XML檔案時,點擊設定時間的表徵圖不能彈出時間設定視窗;
解決方案:使用OpenCMS資源管理員編輯/system/workplace/resources/components/js_calendar/lang/calendar_zh.properties檔案,刪除原有內容,將$TOMCAT_HOME/webapps/opencms/resources/components/js_calendar/lang/calendar_zh.properties的內容複寫進來。發布應用;

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.