Fluid icon indicating copy to clipboard operation
Fluid copied to clipboard

Make parent sections available

Open cedricziel opened this issue 6 years ago • 1 comments

Twig allows rendering parent blocks:

{% block foo %}
  {{ parent() }}
{% endblock %}

Can we have something like that?

cedricziel avatar Dec 15 '17 12:12 cedricziel

I kind of have a PoC for that (f:sections to import sections from named partial, you can then render and/or override them locally) but because it's the "wrong way" in the internals (going up rather than down the tree) and sections are currently transferred in a pretty oldschool way, it's quickly become a huge change with several internally breaking changes leading up to it.

TL;DR: yes, but it will require at least another week of work even though I have a working demo of it; sponsoring would help a lot.

NamelessCoder avatar Dec 15 '17 13:12 NamelessCoder

Hey.

I hope it's ok to close here with "not planned" for now: The fluid v3 approach did not make it, and there is currently no work to change the fluid syntax accordingly. The issue is of course kept in history, but it's unclear if and how Fluid may catch up on this.

lolli42 avatar May 10 '23 22:05 lolli42