Installation 

Composer 

composer require twtgroup/headliner
Copied!

The extension can also be installed from the TYPO3 Extension Repository.

Add the site set 

Add the site set twtgroup/headliner to your site, in Sites > Setup or in the configuration of the site:

config/sites/<identifier>/config.yaml
dependencies:
  - twtgroup/headliner
Copied!

fluid_styled_content is optional:

  • With it (add its set to the site as well, typo3/fluid-styled-content) the site set overrides the header partial, so the tags and CSS classes of the content elements of the core come from the fields of Headliner. The set loads fluid_styled_content before itself, whatever the order in the site.
  • Without it (only Content Blocks, say, or templates of your own) the set has the site settings and the page TSconfig and changes no template: the tags in the frontend come from the ViewHelpers headliner:headline and headliner:headline.values in your own templates (see Your own templates). Nothing is reported or logged. The box in the page module works the same.

Installing the package alone changes nothing in the frontend: the site set is what changes the header partial. The new fields Tag and Subheader tag are in the form of the content elements and the box is in the page module as soon as the package is installed, but without the site set the fields have no effect in the frontend, and the box shows the headings as labels, without a select.

Clear the caches after you add the set: the site sets and the TypoScript are cached, and until then the box can show headers of fluid_styled_content as if they came from the text of the element (badge RTE).

Database 

The new fields are created from the TCA, no ext_tables.sql is needed. Run Admin Tools > Maintenance > Analyze Database Structure (or vendor/bin/typo3 extension:setup) once after the installation.