f | User profiles in the Community application serve t | f | User profiles in the Community application serve t |
| wo purposes: | | wo purposes: |
| | | |
| 1. Allow the user define public attributes which w | | 1. Allow the user define public attributes which w |
| ill be visible in his public profile. | | ill be visible in his public profile. |
| 2. Set application specific settings. | | 2. Set application specific settings. |
| | | |
t | | t |
|
| | | # Configuring information fields
|
| | |
|
| | | An administrator of a site can define which fields |
| | | are available. These can be set in the django adm |
| | | in under Community -> Community user profile field |
| | | s.
|
| | |
|
| | | Each configured field has four properties:
|
| | |
|
| | | - Name: The label visible to the user while editin |
| | | g or viewing a user profile.
|
| | | - Regex: A regular expression which checks if the |
| | | input of a user is valid. Useful for example to va |
| | | lidate that a URL is prefixed with http://
|
| | | - Renderstring: A python formatting string how the |
| | | value should be rendered. You can use %(value)s t |
| | | o include the value.
|
| | | - Sortorder: Defines the order in which the fields |
| | | appear while editing or viewing a user profile.
|
| | |
|
| | |
|
| | | # Taking advantage of user profiles in your own ap |
| | | plications
|