Skip to main content

Subtitle and Text

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

NameTypeDefault ValueMultipleRequiredValidation
SubtitleText (Formatted)NoYes
TextText (Formatted,Long)NoYes

Nextjs Create

const paragraph_subtitle_and_text = await drupal.createResource<DrupalParagraph>("paragraph--subtitle_and_text", {
data: {
type: 'paragraph--subtitle_and_text',
attributes: {
field_text: [
{
value: 'Paragraph content',
format: "plain_text",
}
],
field_subtitle: [
{
value: 'Alo',
format: "plain_text",
}
],
},
},
}, {
withAuth: {
username: process.env.DRUPAL_USERNAME,
password: process.env.DRUPAL_PASSWORD,
},
});