开发者

Liferay: how to retrieve layout from a layout set?

开发者 https://www.devze.com 2023-01-28 09:02 出处:网络
I\'m trying to build a new navigation system based on myPlaces portlet. The aim is to show every page contained in each community/organization that can be accessed 开发者_如何学Pythonby the user.

I'm trying to build a new navigation system based on myPlaces portlet. The aim is to show every page contained in each community/organization that can be accessed 开发者_如何学Pythonby the user.

I'm stuck on the Layout system. I retrieved the LayouSet of the community (both private and public), but I can't manage to retrieve the Layoust (which are actually the pages).

How can I do that? I hoped there would be simplye a getLayouts() from LayoutSet model, but there is nothing like it.


OK I got it, I had to go through LayoutLocalServiceUtil:

List<Layout> layouts =  LayoutLocalServiceUtil.getLayouts(group.getGroupId(), false);
0

精彩评论

暂无评论...
验证码 换一张
取 消