Profile templates
Inside profile templates, you have the following varaibles available:
Variable | Type | Description |
---|---|---|
profile | map | The root element of the below's GraphQL query. You can e.g. access the profile title with profile.title |
person | map | A shortcut to the below's GraphQL query profile.person |
options | OptionsWrapper | Provide access to any options passed during the creation of the export |
profile
In addition to the loaded GraphQL data, profile
has the following additinal attributes to access profile custom fields:
Key | Type | Description |
---|---|---|
profile.field_role | map | Custom field Role |
profile.field_experiences | map | Custom field Experiences |
profile.field_compentencies | map | Custom field Competencies |
profile.field_focus | map | Custom field Focus |
Each of the fields has the following structure:
Key | Type | Description |
---|---|---|
$field.content | string<html> | Parsed markdown of content |
$field.content_plain | string | Content without parsed markdown |
$field.is_from_default_profile | bool | true if this field is coming from a user's default profile |
$field.title | string | Title of custom field |
$field.key | string | Key of custom field |
$field.input_type | enum('invalid','textarea','input','checkbox') | Input type |
options
During an export you can provide custom options. Those are available in the options
object.
Check if checkbox has been checked
{if $options->is_private->enabled}
<em>redacted</em>
{else}
{$person.name}
{/if}
Check if text has been provided as custom option
External project ID:
{if $options->external_id->not_empty}
{$options->external_id->value}
{else}
<em>external ID has not been set</em>
{/if}
GraphQL
The following GraphQL query is executed by default, to load a user's profile data:
query GetProfile(\$profile: ID!, \$participationSelector: PersonParticipationsOnlyParticipationsWhereConditions) {
profile(
guid: \$profile
) {
guid
title
person {
name
guid
language {
name
code
}
broker {
name
}
educations {
diploma {
name
}
establishment
profession
description
begin_at
end_at
}
language_proficiencies {
guid
type
language {
name
}
everyday_reading {
sequence
name
}
everyday_writing {
sequence
name
}
everyday_speaking {
sequence
name
}
professional_reading {
sequence
name
}
professional_writing {
sequence
name
}
professional_speaking {
sequence
name
}
}
about
participations(
onlyParticipations: \$participationSelector
) {
guid
begin_at
end_at
title
description
position {
guid
name
}
initiative {
guid
name
description
customer {
guid
name
branch {
guid
name
}
}
facts {
name
}
}
facts {
name
}
}
}
}
}
$participationSelector
is an array with selected participations, e.g. when the profile only has subset of user's
participations selected.