Global Content

Categories

Component ID

2909579

Component name

Global Content

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

206

Component created

Component changed

Component body

This module allows 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 preprocess (see ".module" file).

How to

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.