Foros de discusión

hiding few fields in Registration portlet

john john, modificado hace 11 años.

hiding few fields in Registration portlet

New Member Mensajes: 23 Fecha de incorporación: 17/12/12 Mensajes recientes
Hi ,

I am new to Liferay and i am trying to hide email field in registration portlet by placing the following command in portal-ext.properties file.

users.email.address.required=false

i placed portal-ext.properties file is under tomcat-7.0.23\webapps\ROOT\WEB-INF\classes

still it is not working.Any help would be highly appreciated.

Thanks in advance.
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: hiding few fields in Registration portlet

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
That property won't hide it, it'll just make email entry optional instead of required. BTW, did you change login to use screen name instead of email?
john john, modificado hace 11 años.

RE: hiding few fields in Registration portlet

New Member Mensajes: 23 Fecha de incorporación: 17/12/12 Mensajes recientes
Hi Hitoshi Ozawa,

Yes i using screen name to login..
Rahul Sharma, modificado hace 11 años.

RE: hiding few fields in Registration portlet

Junior Member Mensajes: 59 Fecha de incorporación: 11/01/12 Mensajes recientes
Hi,
You can do this even by creating a hook to the registration portlet.
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: hiding few fields in Registration portlet

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
I haven't checked this out myself yet, but it may be doable by just setting a css to hide the fields.
john john, modificado hace 11 años.

RE: hiding few fields in Registration portlet

New Member Mensajes: 23 Fecha de incorporación: 17/12/12 Mensajes recientes
Hi Rahul,

i have created a hook for registration portlet.

Could you please tell me steps how to hide few fields in registration portlet
Rahul Sharma, modificado hace 11 años.

RE: hiding few fields in Registration portlet

Junior Member Mensajes: 59 Fecha de incorporación: 11/01/12 Mensajes recientes
You need to comment out those fields jsp code which you don't want to show and then you need to deploy this jsp plugin hook into liferay.
john john, modificado hace 11 años.

RE: hiding few fields in Registration portlet

New Member Mensajes: 23 Fecha de incorporación: 17/12/12 Mensajes recientes
Thanks Rahul...