Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Inserting newsletter signup form: page-inject?

Started by paul 7 years ago · 0 replies · 536 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 Andy Miller, 7 days ago
0 117 7 days ago
General · by lynbor, 1 month ago
3 445 2 weeks ago
General · by lynbor, 3 weeks ago
7 564 2 weeks ago
General · by Harry, 2 weeks ago
0 164 2 weeks ago
General · by Old Man Umby, 1 month ago
2 310 4 weeks ago