Foros de discusión

get portlet position

Paulo Khouri Carvalho, modificado hace 15 años.

get portlet position

New Member Mensajes: 9 Fecha de incorporación: 15/05/08 Mensajes recientes
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, modificado hace 15 años.

RE: get portlet position

New Member Mensajes: 9 Fecha de incorporación: 15/05/08 Mensajes recientes
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, modificado hace 15 años.

RE: get portlet position

Regular Member Mensajes: 121 Fecha de incorporación: 24/09/07 Mensajes recientes
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, modificado hace 15 años.

RE: get portlet position

New Member Mensajes: 9 Fecha de incorporación: 15/05/08 Mensajes recientes
Thanx a lot!!
thumbnail
Oliver Lauer, modificado hace 15 años.

RE: get portlet position

Junior Member Mensajes: 83 Fecha de incorporación: 16/09/06 Mensajes recientes
Where are these infos saved in the database?
Thx
Oliver
thumbnail
Ray Augé, modificado hace 15 años.

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

Liferay Legend Mensajes: 1197 Fecha de incorporación: 8/02/05 Mensajes recientes
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, modificado hace 15 años.

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

Junior Member Mensajes: 83 Fecha de incorporación: 16/09/06 Mensajes recientes
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, modificado hace 13 años.

RE: get portlet position

New Member Mensaje: 1 Fecha de incorporación: 1/02/11 Mensajes recientes
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, modificado hace 9 años.

RE: get portlet position

Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
You can use Portlet Location Tracker app available on Liferay market place.
thumbnail
ismail zabiulla s, modificado hace 8 años.

RE: get portlet position

Junior Member Mensajes: 70 Fecha de incorporación: 13/07/14 Mensajes recientes
hi jitendra

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