一、简介
custom fields是一种用于在portal中为各种各样Asset添加属性的方法。举个例子,如果你用Liferay Poratal创建一个书评类的网站,你可能回为一个User Object添加一个标签叫做“最喜爱的书”。
还有一个比较常见的用法是为每一个page添加一个叫做“页面类型”的属性,以表明这个页面是index,还是subindex的。
二、使用(以为Page添加page type举例)
找到custom fields: Control Pane --> Portal --> Custom Fields
这里面是所用用到custom fields的地方,当然,也可以添加新的应用。
2. custom field "Page Type"
点"Action"里的edit,进入定义页面
属性效果在layout属性页面会展现: