Forums de discussion
get portlet position
Paulo Khouri Carvalho, modifié il y a 15 années.
get portlet position
New Member Publications: 9 Date d'inscription: 15/05/08 Publications récentes
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, modifié il y a 15 années.
RE: get portlet position
New Member Publications: 9 Date d'inscription: 15/05/08 Publications récentes
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, modifié il y a 15 années.
RE: get portlet position
Regular Member Publications: 121 Date d'inscription: 24/09/07 Publications récentes
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, modifié il y a 15 années.
RE: get portlet position
New Member Publications: 9 Date d'inscription: 15/05/08 Publications récentes
Thanx a lot!!
Oliver Lauer, modifié il y a 15 années.
RE: get portlet position
Junior Member Publications: 83 Date d'inscription: 16/09/06 Publications récentes
Where are these infos saved in the database?
Thx
Oliver
Thx
Oliver
Ray Augé, modifié il y a 15 années.
Re: [Liferay Forums][3. Development] RE: get portlet position
Liferay Legend Publications: 1197 Date d'inscription: 08/02/05 Publications récentes
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, modifié il y a 15 années.
RE: Re: [Liferay Forums][3. Development] RE: get portlet position
Junior Member Publications: 83 Date d'inscription: 16/09/06 Publications récentes
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, modifié il y a 13 années.
RE: get portlet position
New Member Envoyer: 1 Date d'inscription: 01/02/11 Publications récentes
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, modifié il y a 9 années.
RE: get portlet position
Liferay Master Publications: 875 Date d'inscription: 07/01/11 Publications récentes
ismail zabiulla s, modifié il y a 8 années.
RE: get portlet position
Junior Member Publications: 70 Date d'inscription: 13/07/14 Publications récentes
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 ..