PDA

View Full Version : Cloning a portlet to be created in another portal.



CrazyEnigma
2 Dec 2009, 3:32 PM
I am wondering if anyone has encountered this problem of cloning a portlet to another portal. What happens is I use the insert or add, but the portlet gets duplicated instead of cloned.

I don't want to remove it from the current portal, just copy it into another portal.



// As Tool for Portlets.
var addToSummaryTool = {
id:'left',
qtip: 'Add to Summary Portal',
handler: function(e, target, panel){
var portal = Ext.ComponentMgr.get('summary');
portal.add(panel.initialConfig);
portal.setVisible(true);
}
};


I also tried:


var config = {};
Ext.apply(config, panel, {});
portal.add(config);
portal.setVisible(true);

kamleshb
22 Dec 2010, 9:20 PM
Hey
Me too want something like that. Add function removes current portlet item and add it to other one. I want to something like copy function.