Fórumok

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

Maria Merzhanova, módosítva 9 év-val korábban

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

New Member Bejegyzések: 22 Csatlakozás dátuma: 2014.09.26. Legújabb bejegyzések
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, módosítva 9 év-val korábban

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

Liferay Master Bejegyzések: 722 Csatlakozás dátuma: 2010.08.05. Legújabb bejegyzések
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, módosítva 9 év-val korábban

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

Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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, módosítva 9 év-val korábban

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

Junior Member Bejegyzések: 57 Csatlakozás dátuma: 2013.07.21. Legújabb bejegyzések
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, módosítva 9 év-val korábban

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

New Member Bejegyzések: 22 Csatlakozás dátuma: 2014.09.26. Legújabb bejegyzések
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, módosítva 9 év-val korábban

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

New Member Bejegyzések: 22 Csatlakozás dátuma: 2014.09.26. Legújabb bejegyzések
Hi Madhava !
I didn't find User ID in details_user_name.jspf. In what file User ID?
Anonymous Anonymous, módosítva 9 év-val korábban

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

Regular Member Bejegyzések: 127 Csatlakozás dátuma: 2019.09.16. Legújabb bejegyzések
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, módosítva 9 év-val korábban

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

New Member Bejegyzések: 22 Csatlakozás dátuma: 2014.09.26. Legújabb bejegyzések
Hi Enayath!
Thanks a lot! It works! You helped me a lot. emoticon

Regards
Maria
thumbnail
David H Nebinger, módosítva 9 év-val korábban

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

Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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, módosítva 7 év-val korábban

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

New Member Bejegyzések: 2 Csatlakozás dátuma: 2016.09.01. Legújabb bejegyzések
please help me !!!

how to override details_user_name.jspf using liferay 7

if any example please provide link or steps

Thanks
maha vishnu, módosítva 7 év-val korábban

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

New Member Bejegyzések: 2 Csatlakozás dátuma: 2016.09.01. Legújabb bejegyzések
how would you remove title and suffix in registration please help me!!