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
Domain Main Navigation
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).
Home Page Hours Block
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.
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).
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.
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.
Footer Maps
Footer Maps are not configurable or editable. In order to change the maps displayed in the sites' footers, please consult Configuration.