组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
sasmita swain
adding custom portlet in control pannel
2012年10月7日 下午11:39
答复

sasmita swain

等级: Regular Member

帖子: 185

加入日期: 2012年2月24日

最近的帖子

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
2012年10月8日 上午12:17
答复

Sampsa Sohlman

LIFERAY STAFF

等级: Regular Member

帖子: 225

加入日期: 2007年9月27日

最近的帖子

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
2012年10月8日 上午1:03
答复

sasmita swain

等级: Regular Member

帖子: 185

加入日期: 2012年2月24日

最近的帖子

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
2012年10月8日 上午1:45
答复

Vishal Panchal

等级: Expert

帖子: 280

加入日期: 2012年5月20日

最近的帖子

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
2012年10月8日 上午2:35
答复

jaid shaik

等级: Regular Member

帖子: 170

加入日期: 2010年10月7日

最近的帖子

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...