Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Inserting newsletter signup form: page-inject?

Started by paul 7 years ago · 0 replies · 614 views
7 years ago

My goal is to be able to easily place a newsletter signup form in various pages. I have a form.md whose header contains a working form that adds new subscriptions to Mailchimp. As a standalone page, this form displays and functions correctly.

I thought I could use the page-inject plugin, but the page-inject shortcode renders the raw HTML of the form on the page where I use it, instead of displaying the form.

I understand that I could create a custom plugin with shortcode to inject the form wherever I need it, but that is a bit beyond me. I'd be grateful for any ideas for making page-inject work for this purpose, or something else.

I'm using grav 1.7.rc8 by the way.

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago