Foren
get portlet position
Paulo Khouri Carvalho, geändert vor 15 Jahren.
get portlet position
New Member Beiträge: 9 Beitrittsdatum: 15.05.08 Neueste Beiträge
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
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, geändert vor 15 Jahren.
RE: get portlet position
New Member Beiträge: 9 Beitrittsdatum: 15.05.08 Neueste Beiträge
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
Peter Shin, geändert vor 15 Jahren.
RE: get portlet position
Regular Member Beiträge: 121 Beitrittsdatum: 24.09.07 Neueste Beiträge
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:
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.
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, geändert vor 15 Jahren.
RE: get portlet position
New Member Beiträge: 9 Beitrittsdatum: 15.05.08 Neueste Beiträge
Thanx a lot!!
Oliver Lauer, geändert vor 15 Jahren.
RE: get portlet position
Junior Member Beiträge: 83 Beitrittsdatum: 16.09.06 Neueste Beiträge
Where are these infos saved in the database?
Thx
Oliver
Thx
Oliver
Ray Augé, geändert vor 15 Jahren.
Re: [Liferay Forums][3. Development] RE: get portlet position
Liferay Legend Beiträge: 1197 Beitrittsdatum: 08.02.05 Neueste Beiträge
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.
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.
Oliver Lauer, geändert vor 15 Jahren.
RE: Re: [Liferay Forums][3. Development] RE: get portlet position
Junior Member Beiträge: 83 Beitrittsdatum: 16.09.06 Neueste Beiträge
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
Cheers
Oliver
Andrey Yemi, geändert vor 13 Jahren.
RE: get portlet position
New Member Beitrag: 1 Beitrittsdatum: 01.02.11 Neueste Beiträge
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?
Jitendra Rajput, geändert vor 9 Jahren.
RE: get portlet position
Liferay Master Beiträge: 875 Beitrittsdatum: 07.01.11 Neueste Beiträge
ismail zabiulla s, geändert vor 8 Jahren.
RE: get portlet position
Junior Member Beiträge: 70 Beitrittsdatum: 13.07.14 Neueste Beiträge
hi jitendra
How can we track web contents display.. i need to have search webcontents ..
How can we track web contents display.. i need to have search webcontents ..