Foren

How to create portlet widget?????

thumbnail
Amit Singh, geändert vor 13 Jahren.

How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Hi All,


I was trying to create portlet widget.

Widget will be having list of portlet on basis of user role. And user can drag the portlet through the available portlet links in widget. Anyone have idea regarding this implementation than please help me.

For example, to add portlet user will click option "More" and than user can drag the portlet on board. Same functionality i am trying to do with portlet widget.

Thanks in advance.....
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
guys it's bit urgent. Please help me.
thumbnail
Jonas X. Yuan, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Liferay Master Beiträge: 993 Beitrittsdatum: 27.04.07 Neueste Beiträge
Hi Amit,

Not sure that I got your requirements.

But Liferay itself seems do what you need. You can drag and drop portlets to any pages, for instance.

By the way, do you try netvibes-widget-portlet?

Hope that it helps,

Thanks

Jonas Yuan
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Hi Jonas Yuan,

Thanks for your reply.I will explain you my requirement.

admin can drag and drop portlets to any page using dockbar but i want to create one portlet with list of portlets on basis of user role. User can drag the portlets on same page using the available portlets link.

Please help me out and let me know if you have any doubt with my requirement.
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Any one have idea?????emoticon
thumbnail
Jonas X. Yuan, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Liferay Master Beiträge: 993 Beitrittsdatum: 27.04.07 Neueste Beiträge
Hi Amit,

Sorry to come back to you late.

I believe that you can reach the same by using Liferay OOB features.

1) re-use Liferay drag and drop to create pages

2) set permissions based on roles: MANAGE PAGES, etc.

Hope that it helps,

Thanks

Jonas Yuan
==================
The Author of Liferay Books:
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Hi Jonas,

Thanks for your kind reply. Still, i am struggling with my portlet gallery section. Working on that with some clue. But, if you understand my problem than let me know any suggestion from your side also.
thanks.
thumbnail
Mohd Hanafi, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 83 Beitrittsdatum: 18.01.10 Neueste Beiträge
Amit Singh:
Hi All,

Widget will be having list of portlet on basis of user role. And user can drag the portlet through the available portlet links in widget.

Thanks in advance.....


This is my opinion.

1. You need create new role and assign users to that role.
2. Then you give Portlet Permission to the role.
3. When user login, he can only drag & drop permitted portlets in (2) above.

When you done no (1) & (2), you found that User only can work around portlets (edit, configure & etc)
that added by admin into page, but cannot add new portlet that you ordered in (2) above.

Am I right?


Best regards,
Hanafi,
KL, Malaysia.
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Hi Hanafi ,

Thanks for your reply. I already done with 1st & 2nd point. My requirement is user will be having one portlet list gallery portlet. From that gallery portlet they can drag any portet to his/her dashboard area. If you have nay idea than please let me know the render method of portlet using aui with liferay.
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Hi Jonas,

Please check this link.

Liferay redering the portlet


You have explained about my problem here. But when i am using this function that time i am getting error for showNetvibesInfo is not defined.

Could you please explain more about this functionality....???
thumbnail
Mohd Hanafi, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 83 Beitrittsdatum: 18.01.10 Neueste Beiträge
Amit Singh:
Hi Hanafi ,

My requirement is user will be having one portlet list gallery portlet. From that gallery portlet they can drag any portet to his/her dashboard area.


It will be like this?

We try to visible Add Application part in dock.vm

This part just my illustration, because I cannot solved this yet.
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Hi Hanafi,

Please see attached image. It will clear your more.
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Hi,

I am very near to resolve the issue of my portlet gallery section. It's completed more than 80%. But there is one small issue. I have fixed the column layout while dragging the portlet.Please let me know if anyone knows, how to get layout column id while dragging the portlet. It will be great help for me.

Thanks in advance.
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
i have done with my gallery section. But there is two issue....

1. After dragged the portlet, i have to refresh the page to see the dragged portlet. I am refreshing the page by program but i don't want to refresh the page after dragged portlet.

2. Admin is able to drag the portlet but user is not able to drag any portlet on dashboard.Please let me know if any permission or setting is required.

Let me know if anyone having idea about these two points.

Thanks in advance.
thumbnail
Amit Singh, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
I have done with my second point also. Now only the first point is in pending. Let me know if anyone can guide me for that.

If any one having doubt to dynamically adding portlet on page than let me know.

Thanks.
thumbnail
Jonas X. Yuan, geändert vor 13 Jahren.

RE: How to create portlet widget?????

Liferay Master Beiträge: 993 Beitrittsdatum: 27.04.07 Neueste Beiträge
Hi Amit,

I got your requirements. Eventually, I got the same requirements last year from one client.

This is a nice feature. But it will take time to implement. Of course, based on liferay framework and main features, this is doable.

Better design, simple implementation.

Maybe, it would be nice that you can share your plan here.

Thanks

Jonas Yuan
==================
The Author of Liferay Books:
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
thumbnail
Amit Kumar Singh, geändert vor 12 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Jonas Yuan:
Hi Amit,

I got your requirements. Eventually, I got the same requirements last year from one client.

This is a nice feature. But it will take time to implement. Of course, based on liferay framework and main features, this is doable.

Better design, simple implementation.

Maybe, it would be nice that you can share your plan here.

Thanks

Jonas Yuan
==================
The Author of Liferay Books:
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets


Hi Jonas,

I have done with above functionality. Let me know if want to know more about development.
thumbnail
Jonas Yuan, geändert vor 12 Jahren.

RE: How to create portlet widget?????

Liferay Master Beiträge: 993 Beitrittsdatum: 27.04.07 Neueste Beiträge
Hi Amit,

Great! would you be able to share more details here?

Thanks

Jonas
thumbnail
Anil Sunkari, geändert vor 12 Jahren.

RE: How to create portlet widget?????

Expert Beiträge: 427 Beitrittsdatum: 12.08.09 Neueste Beiträge
Hi Amit,

I too have similar requirement.Can you share your idea so that it will be very useful for all who are in need of it.

Thanks
Anil Sunkari
thumbnail
Amit Kumar Singh, geändert vor 12 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Anil Sunkari:
Hi Amit,

I too have similar requirement.Can you share your idea so that it will be very useful for all who are in need of it.

Thanks
Anil Sunkari


Hi Anil,

Sure, i will help you with this feature. But first let me know where are you getting stuck.
thumbnail
Anil Sunkari, geändert vor 12 Jahren.

RE: How to create portlet widget?????

Expert Beiträge: 427 Beitrittsdatum: 12.08.09 Neueste Beiträge
Amit Kumar Singh:
Anil Sunkari:
Hi Amit,

I too have similar requirement.Can you share your idea so that it will be very useful for all who are in need of it.

Thanks
Anil Sunkari


Hi Amit,

Thanks for reply .... actually i just want to implement only draggable of portlets which liferay wont provide at this attached image location.

Thanks
Anil Sunkari
thumbnail
Amit Kumar Singh, geändert vor 12 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Hi Anil,

If you need only drag-gable code of portlet than you can just go through the http://alloy.liferay.com. Download the alloy. Inside demo folder you will get the code for drag and drop using alloy. You have to use same code for you dragging portlets. And also need not to add any other java script bcz liferay uses only alloy.
thumbnail
Mani kandan, geändert vor 12 Jahren.

RE: How to create portlet widget?????

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Here you can get the war file of netvibes widget portlet.
thumbnail
Amit Kumar Singh, geändert vor 12 Jahren.

RE: How to create portlet widget?????

Junior Member Beiträge: 71 Beitrittsdatum: 12.10.10 Neueste Beiträge
Hi Mani,

Can you more explain more about netvibes-widget-portlet bcz i deployed the war file but i can not see anything. I am getting this message "Please configure this portlet to make it visible to all users. ". Let me know if anything has to configure.
thumbnail
Mani kandan, geändert vor 12 Jahren.

RE: How to create portlet widget?????

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
In netvibes-widget-portlet portlet Go To Configuration -> there you will find many widgets like Facebook Login etc.,

Click any of those widget then you will get that selected widget in that portlet.

See the attachment images.