Foren

Access navigation variable in portlet class or jsp view

Frantisek Simon, geändert vor 11 Jahren.

Access navigation variable in portlet class or jsp view

New Member Beiträge: 5 Beitrittsdatum: 07.02.13 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: Access navigation variable in portlet class or jsp view

Liferay Master Beiträge: 894 Beitrittsdatum: 18.02.09 Neueste Beiträge
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
meera prince, geändert vor 11 Jahren.

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

Liferay Legend Beiträge: 1111 Beitrittsdatum: 08.02.11 Neueste Beiträge
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