Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Ratnamala Mehetre
Functionality similar to Control Panel
18. September 2012 07:34
Antwort

Ratnamala Mehetre

Rang: New Member

Nachrichten: 23

Eintrittsdatum: 7. Juli 2010

Neue Beiträge

I want to implement custom control Panel where look and feel will be exacltly like Liferay control Panel.
There will be few links in left Panel on click on which portlet will render in Right Panel.

What is the best way to go for it.?

I was thinking of making copy on CONTROL_PANEL_MENU(ID:160) portlet and providing custom portlet list instead of PortalUtil.getControlPanelPortlets(themeDisplay.getCompanyId(), curCategory);

Explored code a lot but facing issues to understand Liferay imepelmentation to handle rending on portlet on Right panel when we click on portlet title from Left navigation.

Any pointers will be helpful to go further.

Also appreciate any other approach/suggestion to achieve this.


Environment: Liferay 6.1 CE/EE with bundled tomcat.
Milen Dyankov
RE: Functionality similar to Control Panel
20. September 2012 02:02
Antwort

Milen Dyankov

Rang: Regular Member

Nachrichten: 173

Eintrittsdatum: 23. September 2009

Neue Beiträge

Ratnamala Mehetre:
I want to implement custom control Panel where look and feel will be exacltly like Liferay control Panel.
There will be few links in left Panel on click on which portlet will render in Right Panel.

What is the best way to go for it.?



Not sure if this is sufficient for you, but you can try to create a page and change it's type to "Panel" (by default it's "Portlet"). Then you'll be able to choose the portlets to be added to the panel. The page will have functionality similar to the one in Control Panel. Of course you can change the theme and/or apply your own look and feel.
Jignesh Vachhani
RE: Functionality similar to Control Panel
20. September 2012 03:32
Antwort

Jignesh Vachhani

Rang: Liferay Master

Nachrichten: 780

Eintrittsdatum: 10. März 2008

Neue Beiträge

Hi Ratnamala

I would suggest not to create clone of control panel.
Instead you can put your portlets in existing control panel and make it role based .
So some roles can see let say XYZ menu links some shows and ABC menu links.
This way you can reuse the existing control panel and no need to develop all the things from scratch.
Hope this would help you to get it work.
Ratnamala Mehetre
RE: Functionality similar to Control Panel
23. September 2012 23:21
Antwort

Ratnamala Mehetre

Rang: New Member

Nachrichten: 23

Eintrittsdatum: 7. Juli 2010

Neue Beiträge

Thanks Milen..Its cool suggestion.. emoticon
I was able to add selected applications on my page of type Panel.

Is there any way that I can add User and user Groups?

I want to display User,User Groups, Tags portlet and few custom portlets in my custom control Panel.
Milen Dyankov
RE: Functionality similar to Control Panel
24. September 2012 01:04
Antwort

Milen Dyankov

Rang: Regular Member

Nachrichten: 173

Eintrittsdatum: 23. September 2009

Neue Beiträge

Ratnamala Mehetre:
Thanks Milen..Its cool suggestion.. emoticon
I was able to add selected applications on my page of type Panel.

Is there any way that I can add User and user Groups?

I want to display User,User Groups, Tags portlet and few custom portlets in my custom control Panel.



I believe those portlets are in "category.hidden" and that is the reason you can not add them to the page. Try to overwrite liferay-display.xml and move them to some other category. This will probably solve the problem but it will also make the portlets appear in "applications" menu and thus users with appropriate permissions will be able to add them to any portal page.
Ratnamala Mehetre
RE: Functionality similar to Control Panel
24. September 2012 05:26
Antwort

Ratnamala Mehetre

Rang: New Member

Nachrichten: 23

Eintrittsdatum: 7. Juli 2010

Neue Beiträge

Milen Dyankov:
Ratnamala Mehetre:
Thanks Milen..Its cool suggestion.. emoticon
I was able to add selected applications on my page of type Panel.

Is there any way that I can add User and user Groups?

I want to display User,User Groups, Tags portlet and few custom portlets in my custom control Panel.



I believe those portlets are in "category.hidden" and that is the reason you can not add them to the page. Try to overwrite liferay-display.xml and move them to some other category. This will probably solve the problem but it will also make the portlets appear in "applications" menu and thus users with appropriate permissions will be able to add them to any portal page.



Yes Milen.
I did same thing.
In my ext plugin in liferay-display.xml, I created new category , moved portlets from hidden category to my new category and was able to add it on page of type Panel.

Thanks a ton!!! emoticon
Ratnamala Mehetre
RE: Functionality similar to Control Panel
24. September 2012 05:38
Antwort

Ratnamala Mehetre

Rang: New Member

Nachrichten: 23

Eintrittsdatum: 7. Juli 2010

Neue Beiträge

Jignesh Vachhani:
Hi Ratnamala

I would suggest not to create clone of control panel.
Instead you can put your portlets in existing control panel and make it role based .
So some roles can see let say XYZ menu links some shows and ABC menu links.
This way you can reuse the existing control panel and no need to develop all the things from scratch.
Hope this would help you to get it work.


Thanks Jignesh.
I have tried this but my requirement specifically is new page with selected portlets with control panel theme for it. emoticon
With Role based define permission we can disable/hide portlets by un-checking 'Access in Control Panel '.
But how to disable 'My Pages' and 'Site pages' option with Role based approach.?