Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Milen Dyankov
Move portlet to another page
September 19, 2010 12:41 AM
Answer

Milen Dyankov

Rank: Regular Member

Posts: 173

Join Date: September 23, 2009

Recent Posts

I was reorganizing a Liferay based portal's structure recently. After spending some hours reconfiguring portlets I thought it would be great if there was something like "Move to ..." next to "Configuration" and "Look and Feel" in portlet's configuration menu. Ideally it would show a multi level context menu listing communities and organizations followed by pages hierarchy. Thus user would be able to move given portlet instance to another page with single click.

Does it make sens to you?
Jorge Ferrer
RE: Move portlet to another page
September 20, 2010 4:30 AM
Answer

Jorge Ferrer

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2764

Join Date: August 31, 2006

Recent Posts

Hi Milen,

It makes a lot of sense to me. I'm not sure how easy it would be to implement but I'll try to keep it in mind for 6.1.
Igor Kanshyn
RE: Move portlet to another page
April 5, 2012 7:14 AM
Answer

Igor Kanshyn

Rank: New Member

Posts: 2

Join Date: March 21, 2012

Recent Posts

Jorge Ferrer:
Hi Milen,

It makes a lot of sense to me. I'm not sure how easy it would be to implement but I'll try to keep it in mind for 6.1.



Is there any news about moving portlets between pages?
David H Nebinger
RE: Move portlet to another page
April 5, 2012 7:26 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 9293

Join Date: September 1, 2006

Recent Posts

It is still only available in fantasy land.
Sandeep Nair
RE: Move portlet to another page
April 5, 2012 9:49 PM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1698

Join Date: November 5, 2008

Recent Posts

No promises but let me try and give something back by weekend
Sandeep Nair
RE: Move portlet to another page
April 7, 2012 10:12 PM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1698

Join Date: November 5, 2008

Recent Posts

I am almost done, stuck at one place.

Consider the following code

 1function populateLayout(scopeGroupId){
 2        Liferay.Service.Portal.Layout.getLayouts(
 3            {
 4                groupId: scopeGroupId,
 5                privateLayout: false
 6            },
 7            function(layouts){
 8                for(var i=0;i<layouts.length;i++){
 9                    var layout = layouts[ i ];
10                    alert(layout.name);
11                }
12            }
13        );
14    }


As you can see from the above Liferay's JSON service API to get all the layouts. I particularly need layout name to populate in a select box. I know that the name is stored as xml string to support different locales. I was wondering if there is javascript api to get just the name of the layout using this xml string and language id. There is a java api for doing the same as below. I need equivalent javascript API if any.

1layout.getName(locale)

or
1
2LocalizationUtil.getLocalization(String xml, String languageId)


Regards,
Sandeep
Sandeep Nair
RE: Move portlet to another page
April 10, 2012 12:29 AM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1698

Join Date: November 5, 2008

Recent Posts

I have tried my hands on it. More on how to use it mentioned in this post

Hope its useful

Regards,
Sandeep Nair
Gowtham Mani
RE: Move portlet to another page
April 25, 2012 5:50 AM
Answer

Gowtham Mani

Rank: Junior Member

Posts: 56

Join Date: November 25, 2008

Recent Posts

Thanks Sandeep for the nice functionality,

Regards,
Gowtham