Issue Feature Resolved

#109862Allow stdWrap for config.headerComment

Eric Harrer 05/22/26, 04:48 updated 10/19/26, 19:35

Description

Problem

The TypoScript property config.headerComment is currently documented as type string and rendered as a static value.

This prevents the use of common TypoScript processing features such as insertData, data, wrap, noTrimWrap or if.

Use case

Integrators may want to add a dynamic copyright comment to the generated frontend HTML source:

config.headerComment = © 2011-{date:Y} Eric Harrer
config.headerComment.insertData = 1

Expected output:

<!-- © 2011-2026 Eric Harrer -->

Expected behavior

config.headerComment should support stdWrap and evaluate the example above accordingly.

Proposed solution

Evaluate config.headerComment through stdWrapValue() before passing it to PageRenderer->addInlineComment().

Benefits

  • Backwards compatible: existing static values continue to work unchanged.
  • Consistent with other renderable TypoScript string properties supporting stdWrap.
  • Allows dynamic comments without custom PHP event listeners or middleware.
  • Keeps the evaluated result part of the regular cacheable frontend rendering.

Documentation

The TypoScript Reference should document config.headerComment as:

Type: string / stdWrap

Reviews 1

History 13

  1. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-19T19:35:11+00:00" > 10/19/26, 19:35 </span>

    Applied in changeset commit:a7a71060f5699cffb8f87759da5fc46120bf3a3b.