This module allows you to create global content items which will be displayed on the whole website (ie. header, footer, block, etc.). By default, this module uses the "block" and "page" theme pre-process hooks (see ".module" file).

Usage

Here are steps to configure and display global content items:

  1. Go to "Content" > "Global Content" > "Global Content Settings"
  2. Go to "Manage fields" and add fields
  3. Go to "Content" > "Global Content" and click on "Add one" link
  4. Open the twig files corresponding to the place you want to display your global content items. Insert {{ global_content_MY_FIELD_NAME }} where "MY_FIELD_NAME" is your field's machine name without the drupal "field_" prefix.
Supporting organizations: 
D8 & D9 Development
D10 Development

Project information

Releases