Article
Description
This entity is used to hold time-sensitive content like news, press releases or blog posts. Articles can be categorized into the following categories:
- Career Advice
- For Employers
- Press Releases
- Interviews
- Other
For more info visit Article Categories.
Fields
Name | Type | Default Value | Multiple | Required | Validation |
---|---|---|---|---|---|
Title | Text (Plain) | No | Yes | ||
Teaser Image | Reference (Image) | No | Yes | ||
Category | Reference (Taxonomy Term Article Categories) | No | Yes | ||
Body | Text (Formatted, long) | No | Yes | ||
Paragraph | Reference (Article Paragraph) | No | Yes |
Nextjs Get
const article = await drupal.getResource<DrupalNode>(
"node--article",
"d23c6142-094b-41c7-823d-53e701a695cd",
{
params: {
include: "field_content , field_content.field_image, field_content.field_image.field_media_image, field_tags, field_teaser_image"
},
}
);
console.log(article);