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:

  1. login in as a user with site administrator role
  2. click Administrator's Toolbox > extended fields
  3. click Create New from top right of page body
  4. fill out label and the rest of the form as you normally would
  5. choose "Pre-populated Choices (topic type)" for Ftype
  6. choose the appropriate topic type from Topic Type Choices, in this example "Person"
  7. click create
  8. click on Administrator's Toolbox > topic types
  9. click edit on the Person topic type row
  10. check the appropriate box (optional or required) for your new field
  11. 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.

Discuss This Topic

There are 0 comments in this discussion.

join this discussion

Creative Commons Attribution-Share Alike 3.0 New Zealand License
How do I use the "Pre-populated Choices (topic type)" Ftype for extended fields? by Walter McGinnis is licensed under a Creative Commons Attribution-Share Alike 3.0 New Zealand License