掲示板

How to get parent page details for a community. Finding parent pages.!

thumbnail
12年前 に Parag Negi によって更新されました。

How to get parent page details for a community. Finding parent pages.!

Junior Member 投稿: 69 参加年月日: 11/08/31 最新の投稿
Hi Guyz,

Can someplease advise me how can i get ( page name, page id, page friendly url ) for a community(based on cummunity id)

Also is there any way to go backwads on a page(like going to parent pages and so on.... till the root page is reached).
So, that you can get parent page of the current page. That will be a Great help, if it's possible.

So, that if i am at page 'D'.
Then it's parent pages 'A' 'B' 'C' can be found .

Please help....
Kind Regards,
Parag
thumbnail
12年前 に Samuel Kong によって更新されました。

RE: How to get parent page details for a community. Finding parent pages.!

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
To get pages in a community:

LayoutLocalServiceUtil.getLayouts(long groupId, boolean privateLayout)

To get a parent page (assume current page is in the var "layout"),

layout.getParentLayoutId()
thumbnail
12年前 に Parag Negi によって更新されました。

RE: How to get parent page details for a community. Finding parent pages.!

Junior Member 投稿: 69 参加年月日: 11/08/31 最新の投稿
Hi Samuel,

Thanks very much for your reply.

Is there anyway to get home page of community??
Please advise.

Thanks and Regards,
Parag Negi
9年前 に Meera Alukkal によって更新されました。

RE: How to get parent page details for a community. Finding parent pages.!

New Member 投稿: 1 参加年月日: 14/05/22 最新の投稿
Use

layout.getAncestors()
to get the root