Work Experience
Description
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse viverra massa in dolor lobortis lobortis. Donec nec faucibus risus, ut scelerisque urna. Morbi consectetur dui ut posuere mattis. Morbi dapibus sapien at mi semper, a mollis lacus scelerisque. Donec eu dignissim urna. Curabitur aliquam ipsum posuere tortor sodales venenatis. Integer ut laoreet mi, vitae consectetur massa.
Fields
Name | Type | Default Value | Multiple | Required | Validation |
---|---|---|---|---|---|
Job Position | Text (Formatted) | No | Yes | ||
Company | Text (Formatted) | No | Yes | ||
Start/End Date | Datetime Range | No | Yes | ||
Company’s Country | Reference (Taxonomy Term Geolocation) | No | Yes | ||
Company’s City | Reference (Taxonomy Term Geolocation) | No | Yes | ||
Current Job | Boolean | No | No | ||
Job Description | Text (Formatted, Long) | No | Yes |
Nextjs Create
const paragraph_work_exerience = await drupal.createResource<DrupalParagraph>("paragraph--work_experience", {
data: {
type: 'paragraph--work_experience',
attributes: {
field_current_job: false,
field_company_name:[
{
value: 'Kalitexnis',
}
],
field_job_description:[
{
value: '15 me arista to 10',
format: "basic_html",
}
],
field_job_position:[
{
value: '2300',
}
],
field_start_end_date:{
value: "2023-05-10T11:11:24+03:00",
end_value: "2023-05-12T11:11:28+03:00"
}
},
relationships: {
field_company_city: {
data: {
type: 'taxonomy_term--cities',
id:"9f60ee71-0d43-4b40-a050-8e3f68ecf1b3",
name: "Nicosia",
meta: {
drupal_internal__target_id: 1
}
},
},
field_company_country: {
data: {
type: 'taxonomy_term--countries',
id:"3d3fee8d-7b84-456b-ac6c-d3c36f9dbd23",
name: "Cyprus",
meta: {
drupal_internal__target_id: 2
}
},
},
},
},
}, {
withAuth: {
username: process.env.DRUPAL_USERNAME,
password: process.env.DRUPAL_PASSWORD,
},
});