0
votes

I'm new to liferay.

I imported a big lar into my liferay instance but, for the moment, have none of the required portlets : there are a lot of portlets in the project I'm joining.

Currently, I have the site structure, but the pages display the message that the portlet is not here (logical). For comprehension purposes, I wanted to build my portlets one after the other, on the need, to see them appear by the grace of liferay ;-) But for that I wanted to know which portlet is missing.

This thread : How can i find - which portlets are deployed on which pages in Liferay 6.1? explain how to achieve this through the DB.

Is there really no built-in solution to do it through the liferay interface? Have we really to hack in the DB to get the info or install plugin?

Thanks!

2

2 Answers

2
votes

In your browser console, Liferay.Portlet.list contains all portlets in the page.
This value is generated by themeDisplay.getLayoutTypePortlet().getAllPortlets() on the server.

0
votes

As an alternative you can also look at the HTML code of the page and look for elements with the class portlet-boundary. For example this belongs to an instance of the Journal Content Portlet (Portlet name 56):

<div class="portlet-boundary portlet-boundary_56_ portlet-static portlet-static-end portlet-borderless portlet-journal-content full-screen" id="p_p_id_56_INSTANCE_WdRdMGe86kDa_">