Skip to main content

Lists

Submitted by rnsrk on

In order to use a vocabulary for your list, you have to define allowed values.

Prerequisites

  • You have already configured a field as a list in your pathbuilder ... is the place where you define the WissKI structure, configure groups and fields and tell WissKI to which adapter it should send the queries. You can export/import your pathbuilder setup. The administrative name of a pathbuilder could something like Collection and Collection Items or Named Entities. (how-to in chapter Lists inside the Pathbuilder section).

Configuration

Go to Manage Structure and click on Wisski Entity and Bundles. Click Edit in the column Operations for the wisski-entity ... is an informational object about which information is to be stored or processed. The object can be material or immaterial, concrete or abstract, it is the type of objects or the classification of a group of things, i. e. Bobby (Gorilla gorilla) or Plesiosaurus dolichodeirus could both be individuals of the WissKI entity Specimen. with a List field type. At the Edit page of the wisski-entity ... is an informational object about which information is to be stored or processed. The object can be material or immaterial, concrete or abstract, it is the type of objects or the classification of a group of things, i. e. Bobby (Gorilla gorilla) or Plesiosaurus dolichodeirus could both be individuals of the WissKI entity Specimen. , go to the Manage fields tab. In the row of the List field, click on the Field Type List (text).

You have now the possibility to enter key-label pairs in the format key|label or if you only enter key - Drupal will automatically use it for the label too. We will take advantage of this mechanism. Enter one value per line:

Species
Genus
Family
Order
Class
Phylum
Kingdom

Click Save field settings.

If you now want to create a wisski-individual ... is a concrete instance of a wisski-entity. You create new individuals at WissKI Create. Afterwards they appear at WissKI Navigate under the appropriate WissKI entity, like Bobby (Gorilla gorilla). with this List field, you will notice that a selection list with the defined values is available for the field.

Example Screencast

Need help?

Write an email or join chat.wiss-ki.eu!