浏览 5267 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2006-12-21
确保liferay能够正常运行,假设新的context为myportal 将liferay关闭后准备按照以下步骤修改 1.将${TOMCAT_HOME}\webapps下ROOT目录改名为myportal 2.修改myportal下index.html <meta content="0; url=/c" http-equiv="refresh"> <body onLoad="javascript:location.replace('/c')"> -> <meta content="0; url=c" http-equiv="refresh"> <body onLoad="javascript:location.replace('c')"> 3.修改myportal\WEB-INF\web.xml <context-param> <param-name>root_path</param-name> <param-value>/</param-value> </context-param> -> <context-param> <param-name>root_path</param-name> <param-value>/myportal</param-value> </context-param> 4.修改myportal\WEB-INF\classes\portal-ext.properties portal.ctx=/ -> portal.ctx=/myportal 5.修改myportal\html\js\editor\fckeditor\fckconfig.jsp FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/liferay/browser.html?Connector=/html/js/editor/fckeditor/editor/filemanager/browser/liferay/connectors/jsp/connector?p_l_id=<%= plid %>"; FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/liferay/browser.html?Type=Image&Connector=/html/js/editor/fckeditor/editor/filemanager/browser/liferay/connectors/jsp/connector?p_l_id=<%= plid %>"; -> FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/liferay/browser.html?Connector=/myportal/html/js/editor/fckeditor/editor/filemanager/browser/liferay/connectors/jsp/connector?p_l_id=<%= plid %>"; FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/liferay/browser.html?Type=Image&Connector=/myportal/html/js/editor/fckeditor/editor/filemanager/browser/liferay/connectors/jsp/connector?p_l_id=<%= plid %>"; 重新启动liferay http://localhost:8080/myportal查看新设置是否正常 另: 由于fckeditor中的某些代码被硬编码在java文件中,所以使用fckeditor时浏览服务器图像和浏览器文件时返回的url不正确 比如某个图像url是/myportal/image/image_gallery?img_id=1001,但是在使用fckeditor时返回的是/image/image_gallery?img_id=1001 见ImageCommandReceiver.java fileEl.setAttribute("url", "/image/image_gallery?img_id=" + image.getImageId()); 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2007-02-11
4.2.1版本中,关于
5.修改myportal\html\js\editor\fckeditor\fckconfig.jsp 其文件已经是: FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/liferay/browser.html?Connector=<%= mainPath %>/portal/fckeditor?p_l_id=<%= plid %>"; FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/liferay/browser.html?Type=Image&Connector=<%= mainPath %>/portal/fckeditor?p_l_id=<%= plid %>"; 所以已经不是硬编码了,估计就不需要做那步了。 |
|
返回顶楼 | |
发表时间:2007-03-24
改变应用 context path后你的portlet还能 parallel render么? 可以增加portlet,但是刷新页面后,新增加的就不会显示出来了!
|
|
返回顶楼 | |