フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Frantisek Simon
Access navigation variable in portlet class or jsp view
2013/02/12 1:14
答え

Frantisek Simon

ランク: New Member

投稿: 5

参加年月日: 2013/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 :-)
Oliver Bayer
RE: Access navigation variable in portlet class or jsp view
2013/02/12 1:35
答え

Oliver Bayer

ランク: Liferay Master

投稿: 881

参加年月日: 2009/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
Meera Prince
RE: Access navigation variable in portlet class or jsp view
2013/02/12 1:49
答え

Meera Prince

ランク: Liferay Master

投稿: 860

参加年月日: 2011/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