留言板

plid

Daniel Wilmes,修改在12 年前。

plid

Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子
I am not familiar with what a plid is and where it is stored in lportal. In order to create a new folder using the IGFolder object the first parameter asks for the plid. It is a long value, but I am not sure how to properly pass this param into the method. Any help would be helpful. Thanks.
thumbnail
jelmer kuperus,修改在12 年前。

RE: plid

Liferay Legend 帖子: 1191 加入日期: 10-3-10 最近的帖子
Its the id that uniquely identifies a page in the portal. The entity that holds it is called Layout, and the database table in which it is stored is named the same
thumbnail
Corné Aussems,修改在12 年前。

RE: plid

Liferay Legend 帖子: 1313 加入日期: 06-10-3 最近的帖子
It sounds strange to me though creating an IGFolder with plid
Normally you use the service layer
IGFolderLocalServiceImpl.addFolder(long userId, long parentFolderId, String name, String description,ServiceContext serviceContext)
or

IGFolderLocalServiceUtil.addFolder(long userId, long parentFolderId, String name, String description,ServiceContext serviceContext)
Daniel Wilmes,修改在12 年前。

RE: plid

Regular Member 帖子: 164 加入日期: 11-5-23 最近的帖子
Okay. I will try it the way you have suggested. Thank you.