#109862Allow stdWrap for config.headerComment
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
-
Gerrit Code Review pushed patch set 1 for main to change 96779 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-17T09:29:34+00:00" > 10/17/26, 09:29 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96779 <span data-processor="relativetime" data-value="2026-10-17T15:07:45+00:00" > 10/17/26, 15:07 </span>
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %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.