Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Mail on multiple pages

Started by Muut Archive 10 years ago · 3 replies · 500 views
10 years ago

What's the best way of adding same contact email form on multiple pages?

10 years ago

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.

10 years ago

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"

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1367 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago