Adding custom training fields
Users with Opigno Administrator role can use:1
Step 1
Trainings
2
Step 2
Training settings
opigno_training
):
- text fields (
string
,string_long
,text_long
) - numeric fields (
float
,decimal
,integer
) - boolean
- entity reference (only taxonomy term)
- selection list (
list_string
,list_integer
,list_float
)
NoteAPI structure of the field depends on its cardinality and settings. It’s important to clear the Drupal cache every time when the field configuration is changed.
1
Step 1
Manage form display tab on Trainings
2
Step 2
Training settings

Using custom training fields in Opigno Enterprise API
The field will appear in API under the Training object after the Drupal cache clearing. The field name in the API will be the same as the Drupal machine name, without field_ prefix. For example, if the machine name isfield_custom_field
then in API it will appear as custom_field
.
Using custom fields as catalog filters
Fields of the following types will be automatically available as the catalog filters:- entity_reference that implements a reference to taxonomy terms;
- list_string;
- list_integer;
- list_float.
field_custom_field
then in API an appropriate filter name will be filter_custom_field
.