留言板

Adding extra field to messageboard message that needs to be shown in a list

thumbnail
jelmer kuperus,修改在12 年前。

Adding extra field to messageboard message that needs to be shown in a list

Liferay Legend 帖子: 1191 加入日期: 10-3-10 最近的帖子
I currently need to add an extra field to a messageboard message that needs to be displayed in a forum

The most obvious path to take, i guess, would be to define an expando property and use that. The problem is that retrieving the expando in a list of message board messages will result in 1 + n queries making things quite slow , at least the first time untill they are cached

Another option I can think of would be to define an object called MBMessageExtraFields that are associated with the messages and can be retrieved in one go, but this is a fair chunk of work to do for something so trivial

Finally i could hack liferay's service.xml file add the file and rebuild the service. But hacking the portal is a definite nono

So, I am content with neither of the solutions, Does anyone have any suggestions they would like to add ?
thumbnail
jelmer kuperus,修改在12 年前。

RE: Adding extra field to messageboard message that needs to be shown in a

Liferay Legend 帖子: 1191 加入日期: 10-3-10 最近的帖子
Since i didnt get a reply : bump!