Fórum

Access navigation variable in portlet class or jsp view

Frantisek Simon, modificado 11 Anos atrás.

Access navigation variable in portlet class or jsp view

New Member Postagens: 5 Data de Entrada: 07/02/13 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Access navigation variable in portlet class or jsp view

Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
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, modificado 11 Anos atrás.

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

Liferay Legend Postagens: 1111 Data de Entrada: 08/02/11 Postagens Recentes
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