Tribune

Home » Liferay Portal » English » 2. Using Liferay » General

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
sasmita swain
adding custom portlet in control pannel
7 ottobre 2012 23.39
Risposta

sasmita swain

Punteggio: Regular Member

Messaggi: 185

Data di Iscrizione: 24 febbraio 2012

Messaggi recenti

hi

i am creating new user with different id..i want to display custom portlet in controlpannel..when i am login by test test, my custom portlet is displaying in my controlpanel.but when i am loging by different userid it is not displaying in controlpannel

can anybody helpme?

Thanks in advance
Sampsa Sohlman
RE: adding custom portlet in control pannel
8 ottobre 2012 0.17
Risposta

Sampsa Sohlman

LIFERAY STAFF

Punteggio: Regular Member

Messaggi: 225

Data di Iscrizione: 27 settembre 2007

Messaggi recenti

Hi Sasmita,

Look the liferay-portlet.xml

Look the following entries and read the docs from those

1        <control-panel-entry-category>..</control-panel-entry-category>
2        <control-panel-entry-class>..</control-panel-entry-class>
3        <control-panel-entry-category>..</control-panel-entry-category>
sasmita swain
RE: adding custom portlet in control pannel
8 ottobre 2012 1.03
Risposta

sasmita swain

Punteggio: Regular Member

Messaggi: 185

Data di Iscrizione: 24 febbraio 2012

Messaggi recenti

Thanks for reply

i have added above code in liferay-portlet.xml..it is comming in control panel by test@liferay.com.not comming in different userid
Vishal Panchal
RE: adding custom portlet in control pannel
8 ottobre 2012 1.45
Risposta

Vishal Panchal

Punteggio: Expert

Messaggi: 280

Data di Iscrizione: 20 maggio 2012

Messaggi recenti

sasmita swain:
Thanks for reply

i have added above code in liferay-portlet.xml..it is comming in control panel by test@liferay.com.not comming in different userid



Hi sasmita swain,
Can you please share your liferay-portlet.xml..?

Thanks ,
Vishal R. Panchal
jaid shaik
RE: adding custom portlet in control pannel
8 ottobre 2012 2.35
Risposta

jaid shaik

Punteggio: Regular Member

Messaggi: 170

Data di Iscrizione: 7 ottobre 2010

Messaggi recenti

Hi sasmita swain,

I did same in my portal 6.1 CE,

1<portlet>
2        <portlet-name>videoadmin</portlet-name>
3        <icon>/icon.png</icon>
4        <control-panel-entry-category>my</control-panel-entry-category>
5        <layout-cacheable>true</layout-cacheable>
6        <add-default-resource>true</add-default-resource>
7   </portlet>


The above code i added in liferay-portlet.xml, The portlet is displaying only for admin.

But if you want display to particular user,

I followed the below steps:

1) First I created role.
2) In Role Define permission--> I given that particular portlet permissions.
3) Then I assigned that role to particular user.

particular User also can view that portlet.

I think the above information helpful to you.



Thanks...