Fórum

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

Maria Merzhanova, modificado 9 Anos atrás.

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

New Member Postagens: 22 Data de Entrada: 26/09/14 Postagens Recentes
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 9 Anos atrás.

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

Liferay Master Postagens: 722 Data de Entrada: 05/08/10 Postagens Recentes
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 9 Anos atrás.

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

Liferay Legend Postagens: 14915 Data de Entrada: 02/09/06 Postagens Recentes
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 9 Anos atrás.

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

Junior Member Postagens: 57 Data de Entrada: 21/07/13 Postagens Recentes
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 9 Anos atrás.

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

New Member Postagens: 22 Data de Entrada: 26/09/14 Postagens Recentes
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 9 Anos atrás.

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

New Member Postagens: 22 Data de Entrada: 26/09/14 Postagens Recentes
Hi Madhava !
I didn't find User ID in details_user_name.jspf. In what file User ID?
Anonymous Anonymous, modificado 9 Anos atrás.

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

Regular Member Postagens: 127 Data de Entrada: 16/09/19 Postagens Recentes
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 9 Anos atrás.

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

New Member Postagens: 22 Data de Entrada: 26/09/14 Postagens Recentes
Hi Enayath!
Thanks a lot! It works! You helped me a lot. emoticon

Regards
Maria
thumbnail
David H Nebinger, modificado 9 Anos atrás.

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

Liferay Legend Postagens: 14915 Data de Entrada: 02/09/06 Postagens Recentes
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 7 Anos atrás.

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

New Member Postagens: 2 Data de Entrada: 01/09/16 Postagens Recentes
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 7 Anos atrás.

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

New Member Postagens: 2 Data de Entrada: 01/09/16 Postagens Recentes
how would you remove title and suffix in registration please help me!!