掲示板

Access navigation variable in portlet class or jsp view

11年前 に Frantisek Simon によって更新されました。

Access navigation variable in portlet class or jsp view

New Member 投稿: 5 参加年月日: 13/02/07 最新の投稿
Hi,

I need to get variable which contains list of site navigation. I will use it for html select options to let user to pick up page where he will be redirect after some action.

Can anybody help me achive this ?

Thanks :-)
11年前 に Oliver Bayer によって更新されました。

RE: Access navigation variable in portlet class or jsp view

Liferay Master 投稿: 894 参加年月日: 09/02/18 最新の投稿
Hi Frantisek,

you can use the methods of the "LayoutLocalServiceUtil" class to retrieve the sites of a given group (via groupId parameter).

HTH Oli
thumbnail
11年前 に meera prince によって更新されました。

RE: Access navigation variable in portlet class or jsp view (回答)

Liferay Legend 投稿: 1111 参加年月日: 11/02/08 最新の投稿
HI ,
You can use html drop down there you will provide all pages available for current group or if you want specific grouop and get all pages and populate into select options.
in the drop down you keep plid as option value.
get pall layout object
LayoutLocalServiceUtil.getLayouts(long groupId, boolean privateLayout);

then use this method for navigation url
PortalUtil.getLayoutActualURL(Layout layout) ;


Regrads,
Meera Prince