Hello,
I have a series of pages which all end with the same form. I created the form in a separate page, and it works alone. Now I want to insert the form at the end of every page using that certain template.
For now, I added at the bottom of the template:
{% for form in page.collection() %}
{{ form.content }}
{% include "forms/form.html.twig" %}
{% endfor %}
And this to my pages:
content:
items:
'@page.self': /path/to/form
It’s probably not the cleanest way to do it because there’s only one form to import and not a collection, and ideally I would not need to add something to the front-matter of each page.
Anyway it doesn’t work. Only the content of the form page appears, and not the form itself.
How can I manage to do this?
Thanks :)