Topic: How do I use the "Pre-populated Choices (topic type)" Ftype for extended fields?
Topic type:
As of 1.2, Kete has an extended field Ftype that allows for choosing another topic of a particular topic type as value for an item, thus allowing for rich linking between items and particular topics.
Let's say you want to add more genealogy information to the Person topic type form. You want to link the topic about a person to the existing topics on the site that are the person's relatives for example.
Here are the extended fields you want to add and what the values should look like:
Mother: link to topic about the person's mother
Father: link to topic about the person's father
Siblings: link to topic about the person's oldest sibling, link to topic about next sibling, etc.
You get the idea. The "pre-populated choices (topic type)" Ftype is now available to fit this need. To use it, you must choose it when you create a new extended field.
For example:
- login in as a user with site administrator role
- click Administrator's Toolbox > extended fields
- click Create New from top right of page body
- fill out label and the rest of the form as you normally would
- choose "Pre-populated Choices (topic type)" for Ftype
- choose the appropriate topic type from Topic Type Choices, in this example "Person"
- click create
- click on Administrator's Toolbox > topic types
- click edit on the Person topic type row
- check the appropriate box (optional or required) for your new field
- click Add to Topic Type
That's it.
Now when a user fills out a form about a person (add or edit) when they begin to fill out the field that you added, as they type existing Person topics will drop down as choices that match the letters they type.
After they submit the form a related topic will be added automatically to their item and the display of the field's value will contain a link to the topic they entered.