Advertising sustains the DA. Ads are hidden for members. Join today

How-to display ConfigPage

This guide has not yet been reviewed by Config Pages maintainer(s) and added to the menu.

Imagine that you're created ConfigPage to handle site header settings which content editor should be able to change easily (like display logo, choose a menu, show/hide language swither etc)

How should you build your header in this case? You always can make a custom block or use blocks provided by Drupal and in preprocess get a ConfigPage entity with required settings. But, there is another way to do it, use a block " ConfigPages Block " provided by the module. Just go to Block layout page (/admin/structure/block) or panel content page and choose a ConfigPages Block from list

Guide maintainers

miritas's picture