Skip to content
Snippets Groups Projects
Commit ecbdc27b authored by Claus Due's avatar Claus Due Committed by Christian Kuhn
Browse files

[FEATURE] Auto-render and attach HeaderAssets and FooterAssets

This patch adds a new method on ActionController,
initializeAssetsForRequest($request) which comes
with a default implementation and allows overriding
in subclasses.

The default implementation of this new feature will
try to render sections HeaderAssets and FooterAssets
from the Fluid template that is resolved, assigning
the output (if not empty) to either header or footer,
by using the PageRenderer.

The feature only works for TemplateView and
subclasses thereof, since `renderSection` is not a
required method for ViewInterface implementations;
it only exists on the (MVC-centric) TemplateView.

Change-Id: Ia815410637982c077236e12a848bdd26ead22e69
Releases: master
Resolves: #79409
Reviewed-on: https://review.typo3.org/51380


Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 51abba58
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment