留言板

get portlet position

Paulo Khouri Carvalho,修改在15 年前。

get portlet position

New Member 帖子: 9 加入日期: 08-5-15 最近的帖子
Hi,

I have 3 or more portlets and I need to get the portlets position, when I move them, or change it places I need to know what is the newest position to change its size, to work on Apple/Safari.

Thanx
Paulo Khouri Carvalho,修改在15 年前。

RE: get portlet position

New Member 帖子: 9 加入日期: 08-5-15 最近的帖子
nobody??

Paulo Khouri Carvalho:
Hi,

I have 3 or more portlets and I need to get the portlets position, when I move them, or change it places I need to know what is the newest position to change its size, to work on Apple/Safari.

Thanx
thumbnail
Peter Shin,修改在15 年前。

RE: get portlet position

Regular Member 帖子: 121 加入日期: 07-9-24 最近的帖子
Hi Paulo,

I think you may want to take a look at Liferay Layout Templates. A layout template is a grid that controls the look and feel of a page. You can read more about it on the Liferay wiki: http://wiki.liferay.com/index.php/Layout_Template.

If you still need to know a portlet's position on a Layout you can look at the Layout's typeSettings.

If you put this code in your portlet's view.jsp file:

<%
Layout currLayout = LayoutLocalServiceUtil.getLayout(plid);
System.out.println(currLayout.getTypeSettings());
%>

Your server logs will have something like this:
column-2=portletId1, portletId2
column-1=portletId3

This info tells you where your portlets are located on the page.
Paulo Khouri Carvalho,修改在15 年前。

RE: get portlet position

New Member 帖子: 9 加入日期: 08-5-15 最近的帖子
Thanx a lot!!
thumbnail
Oliver Lauer,修改在15 年前。

RE: get portlet position

Junior Member 帖子: 83 加入日期: 06-9-16 最近的帖子
Where are these infos saved in the database?
Thx
Oliver
thumbnail
Ray Augé,修改在15 年前。

Re: [Liferay Forums][3. Development] RE: get portlet position

Liferay Legend 帖子: 1197 加入日期: 05-2-8 最近的帖子
These are stored as "properties" in the "typeSettings" field of each
Layout record.

Be careful to handle these values properly as they are not designed to
be processed other than through our UnicodeProperties class/methods on
the Layout object.
thumbnail
Oliver Lauer,修改在15 年前。

RE: Re: [Liferay Forums][3. Development] RE: get portlet position

Junior Member 帖子: 83 加入日期: 06-9-16 最近的帖子
Thanks a lot, so I see why I haven't found it. It's a blob field that can't/shouldn't be changed via SQL client.
Cheers
Oliver
Andrey Yemi,修改在13 年前。

RE: get portlet position

New Member 发布: 1 加入日期: 11-2-1 最近的帖子
Unfortunately, this code only determines which portlets are located in the layout. But can I get the actual pixel location (x, y coordinates) of a portlet in the Freeform layout?
thumbnail
Jitendra Rajput,修改在9 年前。

RE: get portlet position

Liferay Master 帖子: 875 加入日期: 11-1-7 最近的帖子
You can use Portlet Location Tracker app available on Liferay market place.
thumbnail
ismail zabiulla s,修改在8 年前。

RE: get portlet position

Junior Member 帖子: 70 加入日期: 14-7-13 最近的帖子
hi jitendra

How can we track web contents display.. i need to have search webcontents ..