Hot answers tagged

2

If partial_with_form.twig isn’t making any of its own customizations to form.twig, then I’d just include the form.twig template using an {% include %} tag, and wrap that whole thing with a {% block %}, so if a template wants to include the partial and make changes to the form, they can just redefine the form themselves. partial_with_form.twig: {% block ...


1

I hope I am not completely missing the point, but I guess like that: Initial 5: {% for block in block.eventList.eventDate('>=' ~ (now|atom)).orderBy('eventDate asc').limit(5).all() %} {{ block.eventTitle }} {% endfor %} rest: {% for block in block.eventList.eventDate('>=' ~ (now|atom)).orderBy('eventDate asc').offset(5).all() %} {{ ...


1

Hm, seems like you can use block() but it can't be within the embed block. Putting it in a variable first and use that variable in the embed block works. {% set petition_after_fields_block = block('petition_after_fields') is defined ? block('petition_after_fields') %} {% embed 'form' %} {% block petition_after_fields %} {{ ...


Only top voted, non community-wiki answers of a minimum length are eligible