Liferay:如何配置Liferay Portal [英] Liferay: How to configure Liferay Portal

查看:364
本文介绍了Liferay:如何配置Liferay Portal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用portal.properties配置或覆盖Liferay门户网站属性?

How to configure or to override Liferay portal properties with portal.properties?

推荐答案

Liferay属性是一种功能强大的工具,它使我们能够配置Portal行为,而无需对hooks,ext和theme-plugin进行编码.通过新的要求,我们首先证明有可能通过Liferay配置的更改来解决此要求.可以在Liferay源代码中找到默认属性配置: https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/portal.properties 或在

Liferay properties is powerful instrument that allows us to configure Portal behaviour without coding of hooks-, ext- and theme-plugin. By new requirement we proof at first for possibility to solve this requirement with change of Liferay configuration. The default properties configuration can be found at Liferay source code: https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/portal.properties or in https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/portal.properties or in liferay-bundles\tomcat-7\webapps\ROOT\WEB-INF\lib\portal-impl.jar

要配置或覆盖Liferay门户的配置属性,我们必须在Liferay的根文件夹(与tomcat捆绑在一起)中创建portal-ext.properties.

To configure or to override configuration properties of Liferay portal we have to create portal-ext.properties at root folder of Liferay (bundled with tomcat).

Liferay
|-data
|-deploy
|-license
|-logs
|-tomcat-7.xxx
|-portal-ext.propeties        <- override portal properties
|-portal-${user}.propeties    <- override user specific properties

通常,我们与版本控制系统(如git或svn)合作,开发人员具有不同的配置(如数据库路径等).Liferay允许在用户界面中配置特定于用户的配置,例如portal-${user}.properties.因此,首先将portal-ext.properties包含用户属性包括在内:

Usual we work in team with version control systems like git or svn, and developers have different configuration like database path etc. Liferay allows to configure user specific configuration in e.g. portal-${user}.properties. Therefor put at first to the portal-ext.properties the inclusion of user properties:

include-and-override = ${default.liferay.home}/portal-${user.name}.properties

这篇关于Liferay:如何配置Liferay Portal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆