apostrophe-people
Advanced tools
Comparing version 0.5.25 to 0.5.26
{ | ||
"name": "apostrophe-people", | ||
"version": "0.5.25", | ||
"version": "0.5.26", | ||
"description": "Staff directories, user accounts and personal profiles for the Apostrophe content management system", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -205,1 +205,18 @@ # apostrophe-people | ||
### Extra Fields: How Job Titles Work | ||
You'll notice that, by default, you're prompted for a job title for each person you add to the group. This information is accessible in templates this way: | ||
```javascript | ||
person.groupExtras[groupId].jobTitle | ||
``` | ||
If you don't want this feature, you can disable it with the `peopleExtras` option when configuring the `apostrophe-groups` module: | ||
```javascript | ||
peopleExtras: false | ||
``` | ||
You can also specify an array of extra fields, replacing the usual job title field. The syntax is a subset of that supported by Apostrophe schemas. We recommend sticking to simple `string` and `select` field types here. | ||
**The relationship between people and groups is currently not an A2 join in the usual sense.** We're not crazy about that, and we may migrate to using standard A2 joins and relationships in the future. |
68891
222