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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Inserting newsletter signup form: page-inject?

Started by paul 6 years ago · 0 replies · 409 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 Jerry Hunt, 4 days ago
2 91 13 hours ago
General · by pamtbaau, 19 hours ago
1 61 18 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 354 5 days ago
General · by Duc , 6 days ago
3 44 5 days ago