Selected Person’s Contracts 

Icon of the selected contracts
CType

academicpersons_selectedcontracts

Plugin

AcademicPersons, plugin SelectedContracts, action ProfileController::selectedContractsAction()

Set

fgtclb/academic-persons-selected-contracts, or the aggregate set fgtclb/academic-persons

Templates

Templates/Profile/SelectedContracts.html, see Templates

The contracts an editor picks, in the order they are picked, one item or one table row each, with the name of its profile. It is the element for a person who holds several roles and should appear in one of them only: the dean on the page of the dean's office, without the professorship, or the contact person of a service with the room and phone number of that role.

The element shows the picked contract, whatever its validity, and none of the other contracts of the profile. The names link to the detail page, which shows the whole profile.

Three tiles with linked name, one position and e-mail each

Three picked contracts, each with the name of its profile and only that contract.

Settings 

Detail Page
Type
page
Default
empty

The page the names link to, see Detail Page.

Selected Contracts
Type
select, several values
Default
empty

The contracts the element shows, in the order of the right-hand list. The left-hand list offers every contract of the installation, ordered by the name of the person and labelled with the last and first name, the function type, the organisational unit and the validity, for example Doe, Jane / Professor / Faculty of Engineering / 2020-04-01--. Empty shows the text that no contract was found.

In an installation with more than one site, page TSconfig restricts the offered contracts to the storage folders of a page tree, see Restrict the backend contract selects. A listener of \FGTCLB\AcademicBase\Event\ModifyTcaSelectFieldItemsEvent can change the items as well.

Show only selected Fields
Type
select, several values
Default
empty

The fields each item shows, see Show only selected Fields. The contract fields are those of the picked contract.

View Mode Toggle
Type
checkbox
Default
off

See View Mode Toggle. Two elements of this kind on one page share the chosen mode.

View Mode Default
Type
select
Default
Tiles

See View Mode Default. The table has one row per contract.

View mode switch with Table active above a table with one row

The table view mode of the selected contracts element: one row per contract.

Show hidden records
Type
checkbox
Default
off

Shows a picked contract whose Visible switch is off as well, for an internal directory. See Contracts that are not public.