Skip to content

sherpadawan/grav-plugin-newsletter

 
 

Repository files navigation

Notice

This plugin is under development. Pull requests and contributions are more than welcome.

Newsletter Plugin for Grav CMS

Newsletter Plugin enables users fill in subscription form on a website based on Grav CMS.

Example of Form Configuration

form:
    name: newsletter
    action: /subscribe.json
    fields:
        -
            name: email
            size: field-size
            outerclasses: field-position
            placeholder: 'Your Email Here'
            type: email
            validate:
                required: true
    buttons:
        -
            type: submit
            classes: 'button submit'
            value: Subscribe
    process:
        -
            subscribe:
                fileprefix: subscriber-
                dateformat: Ymd-His-u
                extension: txt
                body: '{% include ''forms/data.txt.twig'' %}'
        -
            message: 'Thank you for your subscription!'

About

Newsletter Plugin for Grav CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 81.9%
  • HTML 18.1%