Skip to content

Avoid interdependent content_title and page_title Twig blocks#7678

Open
MatTheCat wants to merge 1 commit into
EasyCorp:4.xfrom
MatTheCat:patch-1
Open

Avoid interdependent content_title and page_title Twig blocks#7678
MatTheCat wants to merge 1 commit into
EasyCorp:4.xfrom
MatTheCat:patch-1

Conversation

@MatTheCat

@MatTheCat MatTheCat commented Jun 23, 2026

Copy link
Copy Markdown

Two Twig blocks rendering each other would create an infinite loop if none is overridden.

This PR moves page_title inside content_title so no need to manually render any of those.

Fixes #7676

@MatTheCat MatTheCat changed the title Avoid interdependant blocks Avoid interdependant Twig blocks Jun 23, 2026
@MatTheCat MatTheCat changed the title Avoid interdependant Twig blocks Avoid interdependent content_title and page_title Twig blocks Jun 24, 2026
@MatTheCat

MatTheCat commented Jun 24, 2026

Copy link
Copy Markdown
Author

Not sure if that integrates correctly with templates/layout.html.twig 🤔

@4d4ch4u32 could you confirm this work as expected with page_title or content_title overridden or not?

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.

1 participant