掲示板

Customization on announcement in liferay 6.1

7年前 に Kiran Kumar Boyini によって更新されました。

Customization on announcement in liferay 6.1

Expert 投稿: 287 参加年月日: 11/06/02 最新の投稿
Hi All,

we are using the liferay announcement in our application and we have customized the announcement creation page with hook .
Now I want to add 2 more field in announcement page and when ever I am going to save , I want to save that extra field in announcement table.
Is there any best way to do this in liferay.
Let say extra fields are : Region and Site to announcement table
In creation page when the user clicking on save button, we are using the below code
function <portlet:namespace />saveEntry() {
document.<portlet:namespace />fm.action = '<portlet:actionURL><portlet:param name="struts_action" value="/announcements/edit_entry" /></portlet:actionURL>';
document.<portlet:namespace />fm.target = '';
document.<portlet:namespace />fm.<portlet:namespace /><%= Constants.CMD %>.value = "<%= (entry == null) ? Constants.ADD : Constants.UPDATE %>";
document.<portlet:namespace />fm.<portlet:namespace />content.value = <portlet:namespace />getContent();
submitForm(document.<portlet:namespace />fm);
}


Please suggest me best and simple way how can I achieve this requirement.

Regards,
Kiran.
thumbnail
7年前 に Samuel Kong によって更新されました。

RE: Customization on announcement in liferay 6.1

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
Do not try to modify the portal's database tables (including the announcement table). Instead, you should add your extra fields and the announcementId in a new table.
thumbnail
7年前 に Arunjyoti Banik によって更新されました。

RE: Customization on announcement in liferay 6.1

Junior Member 投稿: 74 参加年月日: 14/08/26 最新の投稿
Yes. Absolutely. Go for custom table or expandos.