I’m building a single page site and want to include a module (_contact) multiple times. is there a way to achieve this?
Tried the following (modular.md)
Thanks in advance
One way to to do this is to create a page/template somewhere and set the page for content in the template, that way you can simply include the template on any page, (modular or not) and it will render with the right content.
If the contact modular page is basically a form, you are able to access any form on any page, just include the appropriate twig template. See this: https://learn.getgrav.org/forms/forms#displaying-forms-from-twig
Do you mean a PHP include in the modular template?
it’s a twig include, the link he provided shows it clearly
The manual states:
Twig processing as well as page cache should be disabled to ensure the form is dynamically processed on the page and not statically cached and form handling can occur.
title: Page with Forms
twig: true <-- typo??
Is this a typo?