Foros de discusión
Access navigation variable in portlet class or jsp view
Frantisek Simon, modificado hace 11 años.
Access navigation variable in portlet class or jsp view
New Member Mensajes: 5 Fecha de incorporación: 7/02/13 Mensajes recientes
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 :-)
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 hace 11 años.
RE: Access navigation variable in portlet class or jsp view
Liferay Master Mensajes: 894 Fecha de incorporación: 18/02/09 Mensajes recientes
Hi Frantisek,
you can use the methods of the "LayoutLocalServiceUtil" class to retrieve the sites of a given group (via groupId parameter).
HTH Oli
you can use the methods of the "LayoutLocalServiceUtil" class to retrieve the sites of a given group (via groupId parameter).
HTH Oli
meera prince, modificado hace 11 años.
RE: Access navigation variable in portlet class or jsp view (Respuesta)
Liferay Legend Mensajes: 1111 Fecha de incorporación: 8/02/11 Mensajes recientes
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
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