该功能可以通过配置文件实现,在portal-ext.properties中修改以下两个属性:
#
# Specify the group id and the article id of the Journal article that will
# be displayed as the terms of use. The default text will be used if no
# Journal article is specified.
#
terms.of.use.journal.article.group.id=
terms.of.use.journal.article.id=
当然我们得先创建一个web文章,比如起个名字为terms-of-use,
保存后,在文章列表中可以获取到文章id:
groupid是通过站点设置页面获取的:
把属性项设置完后,重启服务,就可以看到效果了。
赶紧试试吧。
欢迎光临Liferay俱乐部:www.liferayclub.com
转载于:https://blog.51cto.com/kevinhwq/983956