NCIOCPL / cgov-digital-platform

The Cancer.gov Digital Communications Platform
GNU General Public License v2.0
11 stars 33 forks source link

Drupal: Create a Slim Site Alert Block Content #3304

Open bryanpizzillo opened 2 years ago

bryanpizzillo commented 2 years ago

As a site admin, I would like to be able to easily add slim site alerts on the web site, in order to present important information to our site visitors.

ESTIMATE TBD

We will need to create a new custom block type (custom_block) for Slim Site Alerts. This should allow users with the site admin role to place a block with the alert message in the ncids_notification region.

Add analytics to this ticket that are similar to the analytics on #3404 ...

Resources:

Prerequisites

Sub-Tasks

Notes

Some complementary notes if necessary:

bryanpizzillo commented 2 years ago

Wiki Documentation and Content Model

A block representing an NCIDS Slim Site Alert.

Properties

Common Fields

*Name (Block description) - in the common fields listing, this is referred to as Page Title (the H1). For media entities, Drupal calls this the 'Name' field and does not allow you to override the label unlike node.

Alert Type (New Shared Field)

Local Fields

Alert Heading

Is Dismissible

Alert Body

Form Display Order