Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Frantisek Simon
Access navigation variable in portlet class or jsp view
February 12, 2013 1:14 AM
Answer

Frantisek Simon

Rank: New Member

Posts: 5

Join Date: February 7, 2013

Recent Posts

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
February 12, 2013 1:35 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 883

Join Date: February 18, 2009

Recent Posts

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
February 12, 2013 1:49 AM
Answer

Meera Prince

Rank: Liferay Legend

Posts: 1110

Join Date: February 8, 2011

Recent Posts

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