Foros de discusión

how to remove fields "Suffix" and "Title" from My Account portlet

Maria Merzhanova, modificado hace 9 años.

how to remove fields "Suffix" and "Title" from My Account portlet

New Member Mensajes: 22 Fecha de incorporación: 26/09/14 Mensajes recientes
Hi,
I can't find how to remove fields "Suffix" and "Title" from My Account portlet's details in Liferay portal 6.2
thumbnail
Pankaj Kathiriya, modificado hace 9 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

Liferay Master Mensajes: 722 Fecha de incorporación: 5/08/10 Mensajes recientes
These fields 'Title' and 'Suffix' fields are coming from jsp at details_user_name.jspf


You can override this jsp in hook to remove title and suffix fields.
thumbnail
David H Nebinger, modificado hace 9 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

Liferay Legend Mensajes: 14914 Fecha de incorporación: 2/09/06 Mensajes recientes
I don't know that I'd outright remove them... Maybe turning them into hidden inputs, sure, but removal I'd avoid. Having the hidden fields would allow any other Liferay code that may be somehow bound to the fields to continue to work even though you're not displaying them.
Virat sen, modificado hace 9 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

Junior Member Mensajes: 57 Fecha de incorporación: 21/07/13 Mensajes recientes
I am fully agree with David as unless or until you know what impact could be there due to deleting any code, i would suggest to go with just to hide to achieve your requirement.

Thanks !!
Maria Merzhanova, modificado hace 9 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

New Member Mensajes: 22 Fecha de incorporación: 26/09/14 Mensajes recientes
Thanks a lot Pankaj and David!!!

I hide prefixId and suffixId by inserting comments in details_user_name.jspf.

Please, help me one more. How to hide User ID?
Maria Merzhanova, modificado hace 9 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

New Member Mensajes: 22 Fecha de incorporación: 26/09/14 Mensajes recientes
Hi Madhava !
I didn't find User ID in details_user_name.jspf. In what file User ID?
Anonymous Anonymous, modificado hace 9 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

Regular Member Mensajes: 127 Fecha de incorporación: 16/09/19 Mensajes recientes
Hi

I didn't find User ID in details_user_name.jspf. In what file User ID?


you can hide the user id in html\portlet\users_admin\user\detail.jsp

comment these lines
<aui:field-wrapper name="userId">
<liferay-ui:input-resource url="<%= String.valueOf(selUser.getUserId()) %>" />
<aui:input name="userId" type="hidden" value="<%= selUser.getUserId() %>" />
</aui:field-wrapper>

Regards
Enayath
Maria Merzhanova, modificado hace 9 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

New Member Mensajes: 22 Fecha de incorporación: 26/09/14 Mensajes recientes
Hi Enayath!
Thanks a lot! It works! You helped me a lot. emoticon

Regards
Maria
thumbnail
David H Nebinger, modificado hace 9 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

Liferay Legend Mensajes: 14914 Fecha de incorporación: 2/09/06 Mensajes recientes
Actually, I wouldn't hide the user id. Individual users might not want to or need to see it, but as an admin I've found it useful many, many times.
maha vishnu, modificado hace 7 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

New Member Mensajes: 2 Fecha de incorporación: 1/09/16 Mensajes recientes
please help me !!!

how to override details_user_name.jspf using liferay 7

if any example please provide link or steps

Thanks
maha vishnu, modificado hace 7 años.

RE: how to remove fields "Suffix" and "Title" from My Account portlet

New Member Mensajes: 2 Fecha de incorporación: 1/09/16 Mensajes recientes
how would you remove title and suffix in registration please help me!!