Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Frantisek Simon
Access navigation variable in portlet class or jsp view
12. Februar 2013 01:14
Antwort

Frantisek Simon

Rang: New Member

Nachrichten: 5

Eintrittsdatum: 7. Februar 2013

Neue 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
RE: Access navigation variable in portlet class or jsp view
12. Februar 2013 01:35
Antwort

Oliver Bayer

Rang: Liferay Master

Nachrichten: 883

Eintrittsdatum: 18. Februar 2009

Neue 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
Meera Prince
RE: Access navigation variable in portlet class or jsp view
12. Februar 2013 01:49
Antwort

Meera Prince

Rang: Liferay Legend

Nachrichten: 1110

Eintrittsdatum: 8. Februar 2011

Neue 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