What's the best way of adding same contact email form on multiple pages?
You could set up a modular site which contains your form and insert this form into your page with the page link plugin https://github.com/getgrav/grav-plugin-page-inject .
What we did in cases like that is inserting a field with the url of the modular page with the form so we could access the content from this page with 'find()' in our template https://learn.getgrav.org/themes/theme-vars#findurl . As path we simply insert the value of the field which we created for the url. It's like a modular page for accessing another modular page.
great, thanks!
Tried page-inject but it wasn't working for me. In chat with Andy Miller he mentions the solution is to use forms 2.0
see getgrav/grav-plugin-form#85, section "Displaying Forms in Page Content"
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1367 | 9 years ago | ||
| 2 | 940 | 9 years ago | ||
| 2 | 4069 | 9 years ago | ||
| 1 | 2960 | 9 years ago | ||
| 3 | 1125 | 9 years ago |