Skip to content

deohs/deohs_page_title_image

Repository files navigation

DEOHS Page Title Image module

This module abstracts functionality for rendering page_title blocks as image-based displays. It defines an interface that may be implemented by Node types (bundle classes) that will make additional functionality available to modifying the page_title block. CSS styling is left to the theme to manage.

Implementatation

In a custom module, create a bundle class and implement PageTitleImageInterface, which requires a function -- getTitleBlockVariables() -- that provides the parameters needed to add elements to the page_title block.

Other entity types may take advantage of this functionality by implementing hook_theme_suggestions_HOOK_alter() and hook_preprocess_HOOK() as needed to make the theme system aware of and provide variables to the page_title theme hook.

About

Drupal module for rendering image-backed title blocks.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors