Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Frantisek Simon
Access navigation variable in portlet class or jsp view
12 de Fevereiro de 2013 01:14
Resposta

Frantisek Simon

Ranking: New Member

Mensagens: 5

Data de entrada: 7 de Fevereiro de 2013

Mensagens 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
RE: Access navigation variable in portlet class or jsp view
12 de Fevereiro de 2013 01:35
Resposta

Oliver Bayer

Ranking: Liferay Master

Mensagens: 875

Data de entrada: 18 de Fevereiro de 2009

Mensagens 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
Meera Prince
RE: Access navigation variable in portlet class or jsp view
12 de Fevereiro de 2013 01:49
Resposta

Meera Prince

Ranking: Liferay Master

Mensagens: 816

Data de entrada: 8 de Fevereiro de 2011

Mensagens 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