Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Inserting newsletter signup form: page-inject?

Started by paul 6 years ago · 0 replies · 502 views
6 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 jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago