How to embed navigation portlet in a jsp in Liferay 7.1?

1.1k Views Asked by At

Is there a way to embed a navigation portlet in custom JSP? I know there is a way in theme to call the portlets but I don't think the same works in JSP.

Thanks

1

There are 1 best solutions below

0
Daniele Baggio On BEST ANSWER

Yes, sure.

You have a taglib to embedded a portlet within your custom jsp page, using the correct portlet name.

<liferay-portlet:runtime portletName="com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet">
</liferay-portlet:runtime>