Skip to content

Conversation

@evertharmeling
Copy link
Contributor

Rendering content_footer|raw enables to use HTML in the block. Currently there is no other way of using HTML when defining the content_footer block in your own template. And this shouldn't cause any BC-problems AFAIK.

Rendering `content_footer|raw` enables to use HTML in the block.
@javiereguiluz
Copy link
Collaborator

Evert, thanks for this contribution. I was going to merge it but then I double checked it and thought that the original code (before your fix) was really strange. It's convoluted, and not only it breaks HTML contents, but also basic Twig features such as parent(). It was also a bit opinionated in design (e.g. showing a top border).

So, I'm proposing some changes in #6926 that will fix your issue and will improve all the other things. So, I'm closing this PR in favor of the other one. Thanks!

@evertharmeling
Copy link
Contributor Author

That's indeed a much more elegant solution, I didn't want to bluntly change any 'code style'. Thanks Javier!

javiereguiluz added a commit that referenced this pull request May 6, 2025
… (javiereguiluz)

This PR was merged into the 4.x branch.

Discussion
----------

Improve the content_footer block in the layout template

This is an alternative to #6913.

Commits
-------

8c4e3d9 Improve the content_footer block in the layout template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants