掲示板

how to add page in existing community from other community (LAR file)

10年前 に Amol Guldagad によって更新されました。

how to add page in existing community from other community (LAR file)

New Member 投稿: 2 参加年月日: 14/02/12 最新の投稿
how to add page in existing community from other community (LAR file) in Liferay

I wan to add page in existing community from other community (which is in LAR file) without modifying existing community's contents.
Please provide solution for the same.

Thanks in advance.
thumbnail
10年前 に Murali Krishna によって更新されました。

RE: how to add page in existing community from other community (LAR file)

Junior Member 投稿: 47 参加年月日: 12/01/17 最新の投稿
Hi Amol,

which version of the liferay you are using. communites are changed to sites with advacned functionalities. you need to use the page templete concept for setting the pages for this kind of requirement. create page template with x in community A and while adding same page to the other community B with "x". This make simpler.

Murali
10年前 に Amol Guldagad によって更新されました。

RE: how to add page in existing community from other community (LAR file)

New Member 投稿: 2 参加年月日: 14/02/12 最新の投稿
Hi Murali,

We are using Liferay 6.0.5 version. We have two scenarios:

Scenario 1:
- Create LAR file programmatically by exporting page A into community X .
- Delete Page A from community X
- Import LAR file programmatically into community X

Expected results : Page A should gets added into community X without modifying other pages/contents.

Actual result : Whole community X is getting replaced by Page A only. i.e. other pages are removed/replaced by Page A.

Scenario 2:
- Create LAR file programmatically by exporting page A into community X .
- Import LAR file programmatically into community Y

Expected results : Page A should gets added into community Y without modifying other pages/contents.

for import/export, we are using LayoutLocalServiceUtil.java file

Please let me know if you need more information.

Thanks,
Amol
thumbnail
10年前 に Murali Krishna によって更新されました。

RE: how to add page in existing community from other community (LAR file)

Junior Member 投稿: 47 参加年月日: 12/01/17 最新の投稿
Hi Amol,

I didn't understand, why you went to LAR concept.

LayoutLocalServiceUtil.addLayout(userId,groupId,privateLayout,parentLayoutId,
name,title,description,type,hidden,friendlyURL,
serviceContext);

This is add page to the community along with exiting pages.

Murali