Project Description
Provides user profiles
Usage
Once installed, two new views are provided:
- Display profile
- Edit own profile
Adding Profile Information
The profile is made of all the different parts attached to the User content type. To add some properties to a profile, like a Bio, and Address, some personal information, or whatever you want, just create a custom part and attach it to the User content type.
Adding Fields to the Profile
Optionally, you can add fields to the default
ProfilePart installed with this module. In the Content Types sections of the Dashboard, select Content Parts, then Profile, and finally add all the fields you want to display. You can reuse custom Field Types available on the Gallery, like Date Time Field, Image Field, and so on.
Displaying a Profile
You can access a profile directly by going to
/profile/UserNameYou can also add a link to any profile by using the provided
Profile.LinkFor shape. It takes a
UserName and an optional
Text for the link itself.
@Display(New.Profile_LinkFor(UserName: "johndoe"))
Editing a Profile
From the front-end, only the authenticated user can edit his profile. The page is accessible through the route
/profile/edit, or using @Html.ActionLink(
text, "Edit", "Contrib.Profile")
From the Dashboard, profiles are manageable using the standard Users management page.