该功能可以通过配置文件实现,在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
本文介绍如何通过配置文件指定使用条款的显示方式。首先创建一篇名为“terms-of-use”的Web文章,然后在portal-ext.properties文件中设置groupid和articleid来链接这篇文章。重启服务后即可生效。

被折叠的 条评论
为什么被折叠?



