Closed andybroomfield closed 2 years ago
The following won't work if its now a media entity / paragraph.
<div class="hero blend-darken hero--tint" style="background-image: url('{{ file_url(image) }}')">
Just bumped into this today. The "Subsite overview banner" block is currently unusable without custom theming to work around the problem.
The "Subsite banner" block works on overview pages too, though... so perhaps the overview block isn't even needed?
Going to bump this as ran into it again, although it was the block being in a disbaled region.
Can I propose that we simply remove the template subsite-overview-banner.html.twig
and the overview block itself, as it is not actully used (the page block is) so this is just not needed and it has never worked with subsites so cost should be minimal.
Installed localgov_subsites (after hard deletion and purge of campaigns on a test site, so no campaigns are present). Enabled the banner block.
Got the following error.
I belive its related to modules/contrib/localgov_subsites/templates/subsite-overview-banner.html.twig
Full Error stack track: