掲示板
Find portlet layouts in group
12年前 に Tom Mahy によって更新されました。
Find portlet layouts in group
Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
Hi,
I was wondering if there was an api to find where a specific portlet is used.
for example im looking to find the pages where the portlet "news list" is used on.
Ive looked in the LayoutLocalServiceUtil, i can find the layouts but not the portlets on it.
Ive also tried using PortletLocalServiceUtil, i can find the portlet but not the layout.
any ideas ?
Thank you.
I was wondering if there was an api to find where a specific portlet is used.
for example im looking to find the pages where the portlet "news list" is used on.
Ive looked in the LayoutLocalServiceUtil, i can find the layouts but not the portlets on it.
Ive also tried using PortletLocalServiceUtil, i can find the portlet but not the layout.
any ideas ?
Thank you.
12年前 に Oliver Bayer によって更新されました。
RE: Find portlet layouts in group
Liferay Master 投稿: 894 参加年月日: 09/02/18 最新の投稿
Hi Tom,
the portlets of a page and their order is stored inside the "layout" table in the "typesettings" column. I thought I've read somewhere in the forum that there is a method to retrieve a page of a given portlet but I don't have a link, sorry. You can also use a dynamic query to retrieve the info (I know this way you have to code it on your own but it should work as a quick solution).
HTH Oli
the portlets of a page and their order is stored inside the "layout" table in the "typesettings" column. I thought I've read somewhere in the forum that there is a method to retrieve a page of a given portlet but I don't have a link, sorry. You can also use a dynamic query to retrieve the info (I know this way you have to code it on your own but it should work as a quick solution).
HTH Oli
12年前 に Tom Mahy によって更新されました。
RE: Find portlet layouts in group
Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
Hi Oliver,
You can find the relation inside the "layout.getTypeSettingsProperties()"
You can also use the " LayoutLocalServiceUtil.dynamicQuery" as you sugested.
However it seems that all portlet ids are stored in the DB as a comma separated value.
So no direct query seems to be possible.
Seems like a loop will be needed.
Thank you.
You can find the relation inside the "layout.getTypeSettingsProperties()"
You can also use the " LayoutLocalServiceUtil.dynamicQuery" as you sugested.
However it seems that all portlet ids are stored in the DB as a comma separated value.
So no direct query seems to be possible.
Seems like a loop will be needed.
Thank you.