Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Saikat Saha
I need to create customize the register page by adding few fields
11 de Maio de 2012 02:50
Resposta

Saikat Saha

Ranking: New Member

Mensagens: 22

Data de entrada: 16 de Novembro de 2011

Mensagens recentes

I want to customize the new user registration page as the same like www.liferay.com is having. I want to add fields like Phone number, Address etc. which are already there in "my profile" option. The only thing is to keep those fields available in register page as mandatory.

Is it possible by adding any entry in portal-ext.properties ? Does it really requires a hook (because these fields are already available in liferay in other forms) ?

Please help.
Mohammed Azam
RE: I need to create customize the register page by adding few fields
11 de Maio de 2012 03:17
Resposta

Mohammed Azam

Ranking: Regular Member

Mensagens: 159

Data de entrada: 6 de Novembro de 2009

Mensagens recentes

Saikat Saha:
I want to customize the new user registration page as the same like www.liferay.com is having. I want to add fields like Phone number, Address etc. which are already there in "my profile" option. The only thing is to keep those fields available in register page as mandatory.

Is it possible by adding any entry in portal-ext.properties ? Does it really requires a hook (because these fields are already available in liferay in other forms) ?

Please help.



Hi Saikat

There are only few fields that you can Add / Edit portal-ext.properties file. for your requirement You need to write hook for create_account.jsp file. Having phone numbers and Address as you additional fields. and overide the action file to accept these parameters to save in Address table

Hope this answers your question.

Thanks
Abu Sherif Ahmed
RE: I need to create customize the register page by adding few fields
11 de Maio de 2012 04:00
Resposta

Abu Sherif Ahmed

Ranking: New Member

Mensagens: 2

Data de entrada: 24 de Setembro de 2011

Mensagens recentes

Mohammed Azam:
Saikat Saha:
I want to customize the new user registration page as the same like www.liferay.com is having. I want to add fields like Phone number, Address etc. which are already there in "my profile" option. The only thing is to keep those fields available in register page as mandatory.

Is it possible by adding any entry in portal-ext.properties ? Does it really requires a hook (because these fields are already available in liferay in other forms) ?

Please help.



Hi Saikat

There are only few fields that you can Add / Edit portal-ext.properties file. for your requirement You need to write hook for create_account.jsp file. Having phone numbers and Address as you additional fields. and overide the action file to accept these parameters to save in Address table

Hope this answers your question.

Thanks


Hi Azam,

I also want to configure my user registration page like that in "http://www.liferay.com" User Registration page. I am using Liferay Portal 6.0.6.
Please tell how to use / implement the hook.

Thanks in advance,

Abu Sherif Ahmed
Kolkata
Saikat Saha
RE: I need to create customize the register page by adding few fields
11 de Maio de 2012 03:58
Resposta

Saikat Saha

Ranking: New Member

Mensagens: 22

Data de entrada: 16 de Novembro de 2011

Mensagens recentes

Thanks Mr. Azam,

Got the answar. Can we use the same fields (which are there in "my profile" options) in register page through hook. I mean to say that the data saved through the new fields should be available to edit in his/her profile.

Please clarify me the same.
Paul Butenko
RE: I need to create customize the register page by adding few fields
11 de Maio de 2012 04:15
Resposta

Paul Butenko

Ranking: Junior Member

Mensagens: 38

Data de entrada: 1 de Julho de 2010

Mensagens recentes

Hi,
For caustomizing my profile page you can use hook, but also you can use property users.form.my.account.miscellaneous and users.form.my.account.main from portal-ext.properties. Yo can check solution here.

BR,
Paul
Mohammed Azam
RE: I need to create customize the register page by adding few fields
14 de Maio de 2012 00:21
Resposta

Mohammed Azam

Ranking: Regular Member

Mensagens: 159

Data de entrada: 6 de Novembro de 2009

Mensagens recentes

Saikat Saha:
Thanks Mr. Azam,

Got the answar. Can we use the same fields (which are there in "my profile" options) in register page through hook. I mean to say that the data saved through the new fields should be available to edit in his/her profile.

Please clarify me the same.



Yes Saikat you can do so.

In fact I had requirement to save the comments and the address of the User whenever he adds through registration page. I had used the liferay API to save it and it was available in the profile page of the respective USER.

1AddressLocalServiceUtil.addAddress(pass the necessay arg);
2
3user.setComments("test comment")