unlcms / unl_person

Creates a unl_people remote entity, which gets its data from directory.unl.edu
0 stars 1 forks source link

unl_person

Creates a unl_people remote entity, which gets its data from directory.unl.edu and itegrates with entityreference autocomplete.

Features

Using Entity Reference

When setting up an entityreference field that uses unl_person, there are a few things to keep in mind.

  1. Target Type = UNL Person
  2. Entity Selection mode = UNL Person
  3. Additional Behavior = check UNL Person behavior

The UNL Person Entity Selection Mode tells entityselection to use our custom selection class instead of the normal sql selection mode. This will query the directory via an API.

The UNL Person behavior will edit the schema of the field to allow the target_id to be varchar.

View Modes

Currently unl_person only supports the teaser view mode.