Liferay默认在Tomcat.Jetty等服务器情况下,自动安装marketplace-portlet-6.2.0.1.war包,实现应用商店的自动部署,一般不需要应用商店,故删除以下包即可: /portal-master/portal-impl/src/com/liferay/portal/deploy/dependencies/plugins1/marketplace-portlet-6.2.0.1.war 如果需要实现自动部署自己开发的其他Portlet包,添加到此处,替代market…
1.修改web资源并发布 如果修改了默认主题信息,需执行portal-web中的build-themes任务: 执行portal-web中的deploy任务: 2.修改portal-impl中的java文件并发布 执行portal-impl中的clean.compile.deploy任务: 3.发布所有内容(可参考此系列中第一篇文章) 执行portal中的deploy任务: 4.发布WAR包 WAR包根据服务器中运行的ROOT项目打包而来,因此需要先将修改的内容执行对应的deploy任务发布后,…
1.修改主题模板文件,具体位置如下 (1) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal.vm (2) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal.vm 将上述两个文件改为相应如下即可: <footer id="footer" role="cont…
1.修改默认添加用户权限为User,而非Powers User: 在/portal-master/portal-impl/src/portal.properties文件中有如下配置: # # Input a list of default role names separated by \n characters that are # associated with newly created users. # admin.default.role.names=Power User\nUser…
将初始化过程修改为:中文语言 在/portal-master/portal-impl/src/system.properties文件中,有如下配置: # # Set the default locale used by Liferay. This locale is no longer set at # the VM level. See LEP-2584. # user.country=US user.language=en # # Set the default time zone used…
通过Adobe Creative Cloud 修改 1.在开始菜单中找到图下程序点开,并进行如下操作: 2.点击Apps位置 等待加载出软件,如图下所示. 点击右上角图标,会弹出以下窗口,点击首选项 3.在首选项窗口里面 点到 Creative Cloud位置,就可以看到可以修改的安装位置,如果是灰色的不可以点击,可以稍等会等程序加载完之后就可以了.   如果你的Creative Cloud打开后一直在转圈,并尝试过修复.用AdobeCreativeCloudCleanerTool卸载重装.关闭…
一.设置打包方式 在pom.xml中设置打包格式 <packaging>war</packaging> 二.取消Spring Boot的tomcat <!--部署成war包时开启↓↓↓↓--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> &…
相关页面可以通过/portal-master/portal-impl/src/portal.properties文件配置进行修改: 登录页: ## ## Default Landing Page ## # # Set the default landing page path for logged in users relative to the # server path. This is the page users are automatically redirected to after…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Specify the locales that are enabled by default. # locales.enabled=ca_ES,zh_CN,en_US,fi_FI,fr_FR,de_DE,iw_IL,hu_HU,ja_JP,pt_BR,es_ES 修改为: # # Specify the locales that are enabled by defa…
问题原因是WebSphare下,servletContext.getContextPath()获取到的值为“/”而非空字符串. 在/portal-master/portal-impl/src/com/liferay/portal/spring/context/PortalContextLoaderListener.java文件中有如下代码: if (ServerDetector.isWebSphere() &&_portalServletContextPath.isEmpty()) { _…
在行业客户中,一般无法提供CDN服务,因此默认关闭CDN动态资源功能: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true to enable serving dynamically generated CSS, JavaScript, # and images via a CDN. Setting this to false allows the usage of CDNs that…
为了让用户信息更贴近实际需求,修改如下信息: 1.让登录名可以使用数字.“.”.“_”等 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true when you want the validation to allow for creation of # numeric screen names. # users.screen.name.allow.numeric=false # # In…
为了便于后期与Cas集成过程中使用数据库用户的方便,将liferay密码的加密方式改为SHA. 在/portal-master/portal-impl/src/portal.properties配置文件中,有如下配置: #passwords.encryption.algorithm=BCRYPT/10 #passwords.encryption.algorithm=MD2 #passwords.encryption.algorithm=MD5 #passwords.encryption.algo…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the form when # updating a site. # sites.form.update.main=details,categorization,site-url,site-template sites.form.update.seo=si…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included in login form navigation. # login.form.navigation.pre=anonymous,sign-in,facebook,open-id login.form.navigation.post=create-account,forgot-p…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the organization # form when adding an organization. # organizations.form.add.main=details,organization-site organizations.form.…
为简化用户编辑,删除无用内容: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the user form # when adding a user. # users.form.add.main=details,organizations,personal-site users.form.add.ide…
将Portal设置页面中无用的内容删除: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the company # settings form. # company.settings.form.configuration=general,authentication,users,mail-host-n…
1.关闭自动登录功能: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true to allow users to select the "remember me" feature to # automatically login to the portal. # company.security.auto.login=true 修改为: # # Set this to true…
关闭使用条款确认: 在/portal-master/portal-impl/src/portal.properties配置文件中,有如下配置: # # Set this to true if all users are required to agree to the terms of use. # terms.of.use.required=true 修改为: # # Set this to true if all users are required to agree to the term…
经过2.3两步后,剩余Portlet已经不多,添加Application页面如下: 将用不到的Portlet隐藏起来:11   Portal目录 (Portal Directory) 将内嵌Protlet和IFrame Portlet移到工具分类中. 修改/portal-master/portal-web/docroot/WEB-INF/liferay-display.xml文件: <display> <category name="category.hidden"&…
一.导入源码 源码可以从Liferay的官方网站上下载.http://www.liferay.com/downloads/liferay-portal/available-releases 下载后解压源码,可以使用Eclipse的File-->Import-->General-->Existing Projects in to Workspace.将解压的源码导入到Eclipse中. 导入源码后,如果是6.2的源码,可能会出现如下的错误:Project 'portal-trunk' is…
事先声明,支持这一功能的新版本还没有发布,2017年5月份才支持的 1.以前在62的时候是通过修改ext项目进行修改 2.现在在70可以通过Module Fragment项目进行修改 相关文件:现在出现在这个xml文件中的默认权限还没有挪成OSGi模式,不能用Module Fragement项目进行修改 那么哪些是可以通过这种方式修改呢?那就是从这个xml中被挪走的都是可以进行修改的 然后如何修改呢,举个例子 1.先用liferay IDE创建一个Module Fragment的项目 2.选择c…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true to enable OpenId authentication. If set to true, then the # property "auto.login.hooks" must contain a reference to the class # com.liferay.portal.security.auth.Ope…
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true if users are shown that they do not have access to a # portlet. The portlet init parameter "show-portlet-access-denied" will # override this setting. # layout.show.…
在/portal-master/portal-web/docroot/html/portlet/dockbar/add_panel.jsp文件中 将以下内容: if (hasAddContentAndApplicationsPermission) { tabs1Names = ArrayUtil.append(tabs1Names, "content,applications"); } if (hasLayoutAddPermission) { tabs1Names = ArrayUt…
一.特殊Portlet: 以下Portlet数据特殊用途的Portlet,去除后会出现运行错误: 1.站点模版 通过com.liferay.portal.events.AddDefaultLayoutSetPrototypesAction类,系统初始化站点模版时,使用到如下Portlet Intranet Site模版: 首页: 116  活动 (Activities) 3  查询(Search) 82  语言 (Language) 101  Asset Publisher 文档页: 20  文…
建立Windows Setup project 之后,程序安装的时候会默认选择系统路径- 具体格式为:[ProgramFilesFolder][Manufacturer]\[ProductName], 一般情况下,默认路径为C:\Program Files(x86)\Manufacurer\ProductName. 其中,[Manufacturer]项, 以及[ProductName]项可以在Project里修改. 如下图:…
如果已经装了,先删除 mklink /j C:\Users\XXXX\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc D:\WSL-ubuntu\ 修改WSL-ubuntu文件夹权限为 完全控制 重新安装成功…
管网解释 https://chocolatey.org/docs/features-install-directory-override 1.--install-directory=value    在安装命令行加入这个参数 比如  --install-directory ="D:\Soft" 添加以下选项以安装和升级命令. --dir, --directory, --installdir, --installdirectory, --install-dir, --install-di…