Blocks

Blocks can only be created by developers, though some user roles have permission to edit existing blocks.

Blocks are boxes of content that are rendered on a page or regions (such as footers, nav bars, ect). Blocks are typically used for creating page layouts that can be reproduced, unlike Paragraph Types which are used for creating content that is unique to each page. Furthermore, Blocks are part of the Drupal 8 core (meaning its built into all Drupal 8+ sites) whereas Paragraph Types is an optional module.

A list of all existing blocks can be found by going to Structure > Block Layout.

Block categories

NHMLAC is configured with several categories of blocks, all of which are listed in the Block Layout page. The block categories are as follows:

  • Header: This includes most of the navigation bars
  • Menu Dropdown: This is a block that is used to create dropdown menus in the navigation bars
  • Breadcrumb: This is the breadcrumb that appears at the top of each page
  • Content: Blocks that contain content — this category is the broadest
  • Footer: Footers include social media links, maps and domain specific content
  • Subfooter: Domain specific links in the site footers

Header

Global

Screenshot of global header

Domain Main Navigation

Screenshot of domain main navigation header

Custom block library

Custom blocks were created specifically for the NHMLAC sites. A list of them can be found in the Custom block library, accessible via Structure > Block Layout > Custom block library (/admin/structure/block/block-content). Unlike the other blocks, these can be edited by users with the correct permissions.

Staff Picks

Displays a list fed by the Staff Picks view. The Staff Picks block is used on the Stories page sidebar (screenshot below). The list that is displayed on the sidebar can be edited by add/removing elements from the Staff Picks block page (opens in a new tab).

Screenshot of Stories page with Staff Picks block

Home Page Hours Block

To change the hours displayed on the block, please consult Change museum open hours tutorial.

The home page hours block is the banner that displays at the top of the homepage with the museum's open hours. Note, if any Alerts are published, they will override the home page hours block. Screenshot of homepage with homepage hours block

Donate banner

Each domain has a custom block (i.e. "NHMLAC Member / Donate Banner"). The donate banner is displayed on each page of the site, above the footer (see below). Donate Banner

Fields

  • Featured Image(s): A list of up to 10 images, one of which israndomly selected at page load on a page. Only one image is selected as the banner's background.
  • Title: The title of the banner.
  • Description: The text that appears on the banner.
  • CTAs: The two buttons that appear on the banner. Both allow for custom GTM classes.

Stories Header

The header for the Stories page. Screenshot of Stories page with Stories header block

Free admission callout for menu dropdown

Unclear if it is still in use. Was possibly intended to be a callout for the members page on the Tickets Release content type before the switch to ACME.

Social Footer

The social media links that appears in the Tar Pits and NHM sites in the footer. It is the section with icons for each of the museum's social media pages. Screenshot of NHM site social footer

Footer Maps

Footer Maps are not configurable or editable. In order to change the maps displayed in the sites' footers, please consult Configuration.