intcache icon indicating copy to clipboard operation
intcache copied to clipboard

Make page header and footer rendering configurable

Open tehplague opened this issue 4 years ago • 1 comments

At the moment, the IntObjectRenderer always puts page header and footer (configured JS/CSS resources) around each rendered cObj. This happens in https://github.com/IchHabRecht/intcache/blob/master/Classes/Renderer/IntObjectRenderer.php#L55 However, in most cases those are already supplied by the surrounding page, duplicating them for each cObj replaced by intcache.

Could you make that configurable, either through opt-in or opt-out (to stay BC-compatible)? At the moment we have to patch the IntObjectRenderer, removing the trips to the PageRenderer in order to make the overall process work.

tehplague avatar Mar 11 '21 10:03 tehplague

Hi @tehplague,

Thank you for your report. Would you mind to share more information about your setup? The extension is configured to not any page resources due to the usage of an own page type. Only resources that are registered within the INT objects are output as those are needed and not delivered before.

IchHabRecht avatar Mar 11 '21 11:03 IchHabRecht