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

Inserting newsletter signup form: page-inject?

Started by paul 6 years ago · 0 replies · 474 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 jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago