Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Delgerbayar Dorj
how to add an textfield on phone numbers page in my account.
February 3, 2011 8:26 PM
Answer

Delgerbayar Dorj

Rank: New Member

Posts: 2

Join Date: December 29, 2010

Recent Posts

Hello anyone.

please help me.
First: I have to need add an textfield on phone numbers page in my account. I don't know how to do this. where can I add some html code.

second: insert the textfield's value to mysql database.

emoticon
Faris Abdulla
RE: how to add an textfield on phone numbers page in my account.
February 4, 2011 12:51 AM
Answer

Faris Abdulla

Rank: Regular Member

Posts: 183

Join Date: September 1, 2009

Recent Posts

Hi,

You need to customize liferay existing jsp by using hook. For updating the database you need to update the EditUserAction.java for getting the value and upddating the database table using service.

The jsp ou need to check is:
portlet/enterprise_admin/common/phone_numbers.jsp

Struts Action:
com.liferay.portlet.enterpriseadmin.action.EditUserAction
Delgerbayar Dorj
RE: how to add an textfield on phone numbers page in my account.
February 5, 2011 2:06 AM
Answer

Delgerbayar Dorj

Rank: New Member

Posts: 2

Join Date: December 29, 2010

Recent Posts

thanks Faris.

I will try it.
Apoorva Prakash
RE: how to add an textfield on phone numbers page in my account.
February 7, 2011 4:34 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Droj,

You can also do it by introducing custom attribute and modifying service.xml...

check out my this post...

Hope this will help...

Thanks, regards and happy coding... emoticon