Forums de discussion

Adding Edit Profile portlet.

lalit mohan, modifié il y a 14 années.

Adding Edit Profile portlet.

Junior Member Publications: 55 Date d'inscription: 02/02/10 Publications récentes
Hi All,

How can i add edit profile portlet on a page. Edit profile is provided in control panel in Liferay 5.2
I want to add Edit Profile functionality as a portlet on a page.


Thanks
Eduardo Canuria, modifié il y a 14 années.

RE: Adding Edit Profile portlet.

New Member Publications: 3 Date d'inscription: 11/03/10 Publications récentes
lalit mohan:
Hi All,

How can i add edit profile portlet on a page. Edit profile is provided in control panel in Liferay 5.2
I want to add Edit Profile functionality as a portlet on a page.


Thanks


Hi!

Get the portlet-name (from liferay-portlet.xml for example ) and add an entry for it in liferay-display.xml in the desired category. Then it will be available to be added to any page
lalit mohan, modifié il y a 14 années.

RE: Adding Edit Profile portlet.

Junior Member Publications: 55 Date d'inscription: 02/02/10 Publications récentes
Hi Eduardo

Thanks for reply


I successfully added portlets (Users,Organizations,Setting etc) from Portal Section.

But not am able to add My Account and My Pages portlets. I found them in liferay-portlet.xml

<portlet-name>2</portlet-name> and
<portlet-name>140</portlet-name>

added these portlets to liferay-display.xml

but still not able to get them from Add Application.
Eduardo Canuria, modifié il y a 14 années.

RE: Adding Edit Profile portlet.

New Member Publications: 3 Date d'inscription: 11/03/10 Publications récentes
lalit mohan:
Hi Eduardo

Thanks for reply


I successfully added portlets (Users,Organizations,Setting etc) from Portal Section.

But not am able to add My Account and My Pages portlets. I found them in liferay-portlet.xml

<portlet-name>2</portlet-name> and
<portlet-name>140</portlet-name>

added these portlets to liferay-display.xml

but still not able to get them from Add Application.


Hi again!!

as you can see in liferay-portlet.xml, portlets 2 and 140 are defined as <system>true</system>. It means that an user cannot manually add it.

greetings.
lalit mohan, modifié il y a 14 années.

RE: Adding Edit Profile portlet.

Junior Member Publications: 55 Date d'inscription: 02/02/10 Publications récentes
Thanks Again!

Still a problem

I removed '<system>true</system>' from liferay-portlet.xml for My Accounts portlet.
Now i can see this in Add Application.

Now i can add 'My Accounts' portlet from Add Application. But it does not show any content in the portlet.

I tried on both public & private pages.


Will you please look where i am missing.
thumbnail
KK rajput, modifié il y a 14 années.

RE: Adding Edit Profile portlet.

Expert Publications: 266 Date d'inscription: 10/04/08 Publications récentes
Hi lalit,
it will not show any content because if u check its struts path
/my_account/view
is pointing to a jsp which is empty. try this one in portlet-custom.xml
search for portlet name 2 and modify this section
<init-param>
<name>view-action</name>
<value>/my_account/view</value>
</init-param>


to
<init-param>
<name>view-action</name>
<value>/my_account/edit_user</value>
</init-param>


hope this helps
cheers!!!
lalit mohan, modifié il y a 14 années.

RE: Adding Edit Profile portlet.

Junior Member Publications: 55 Date d'inscription: 02/02/10 Publications récentes
Working fine.

Thanks KK
Thanks for fast reply.