Foren
Customizing User Profile
Iron Man, geändert vor 11 Jahren.
Customizing User Profile
New Member Beiträge: 5 Beitrittsdatum: 03.04.13 Neueste Beiträge
Hi,
I've been trying to find a way to let users write something about them in their profiles, something like their hobbies so that they can share some more information than their e-mail, phone, etc...
So far i've created a custom field (personal-hobbies) which users can fill when editing their profile and in order to make it vissible in their profile for others, i've added this code to webapps/ROOT/html/portlet/directory/view_user.jsp:
The problem with this is that the text written by users has no format at all and i'd like it to be a list, something like
Is there a way to make a list with custom fields?
Should I use something different than custom fields?
I thought it should be easy to let users write a list of interests, but it is becoming a hard task for me!
Thanks in advance.
I've been trying to find a way to let users write something about them in their profiles, something like their hobbies so that they can share some more information than their e-mail, phone, etc...
So far i've created a custom field (personal-hobbies) which users can fill when editing their profile and in order to make it vissible in their profile for others, i've added this code to webapps/ROOT/html/portlet/directory/view_user.jsp:
<liferay-ui:custom-attribute className="<%= User.class.getName() %>" classPK="<%= (selUser != null) ? selUser.getUserId() : 0 %>" editable="<%= false %>" label="<%= true %>" name="personal-hobbies" />
The problem with this is that the text written by users has no format at all and i'd like it to be a list, something like
- reading
- cooking
- sleeping
Is there a way to make a list with custom fields?
Should I use something different than custom fields?
I thought it should be easy to let users write a list of interests, but it is becoming a hard task for me!
Thanks in advance.
Iron Man, geändert vor 11 Jahren.
RE: Customizing User Profile
New Member Beiträge: 5 Beitrittsdatum: 03.04.13 Neueste Beiträge
Up!
Vilmos Papp, geändert vor 11 Jahren.
RE: Customizing User Profile
Liferay Master Beiträge: 529 Beitrittsdatum: 21.10.10 Neueste Beiträge
Hi,
If you can define the values the user can choose from, you could use a Group of Text Values custom field with Checkbox Display Type.
If you can define the values the user can choose from, you could use a Group of Text Values custom field with Checkbox Display Type.