You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our norm these days is to put site footer "stuff" in html.html.twig (usually by way of a partial/include template called site-footer.html.twig).
But, cwd_base puts it in page.html.twig.
I recommend we move this code to html.html.twig!
Reasons:
Because that's our norm these days.
It's messy for us to do it that way in child themes, and still have it in page.html.twig in cwd_base -- for example, we wanted to put footer code into a site-footer partial template in cwd_project (included in html.html.twig), but we can't, unless we add page.html.twig to cwd_project -- and we have no other need for page.html.twig in cwd_project, so it's kind of a bummer.
Problem: Not backwards-compatible 😕
If an existing site uses cwd_base/page.html.twig (i.e. if they don't have a template override in their child theme*), their footer will get messed up if they update cwd_base.
But, we're pretty clear with everybody that cwd_base updates are not necessarily backwards compatible.
And this change could be easily remediated on a child site that wants to update cwd_base without breakage (i.e. create a copy of "old" page.html.twig in their child theme, that's it).
We can even say this in the release notes.
And, let's be real, is any site NOT overriding cwd_base/page.html.twig??
* We don't need to worry about child themes using cwd_base/page.html.twig with block overrides or include variables, because it doesn't have any such things.
The text was updated successfully, but these errors were encountered:
we're pretty clear with everybody that cwd_base updates are not necessarily backwards compatible.
And, we can put a big note in the release notes. If we want, we can even bump the semantic version up to 3.x
^^ If we do that, we could take some other liberties, like...
rename "includes" => "partials" (to match cwd_project)
do the non-paragraphs "slideshow" template work right here in cwd_base (instead of cwd_project) (related issue on CD Demo)
Our norm these days is to put site footer "stuff" in html.html.twig (usually by way of a partial/include template called site-footer.html.twig).
But, cwd_base puts it in page.html.twig.
I recommend we move this code to html.html.twig!
Reasons:
Problem: Not backwards-compatible 😕
If an existing site uses cwd_base/page.html.twig (i.e. if they don't have a template override in their child theme
*
), their footer will get messed up if they update cwd_base.*
We don't need to worry about child themes using cwd_base/page.html.twig with block overrides or include variables, because it doesn't have any such things.The text was updated successfully, but these errors were encountered: