Code Monkey home page Code Monkey logo

buttondown-bludit's Introduction

Buttondown Newsletter Plugin for BluditCMS

Buttondown.email is a newsletter service that I prefer over others like e.g. MailChimp. I'm not affiliated with Buttondown in any other way then happily using their service. This plugin uses the Buttondown API to automatically send a newsletter for new pages, e.g for subscribers to your blog. The mail contains the full page content.

Instalation

Download and extract into bl-blugins.

Usage

  • Create a Buttondown.email account and configue it for your website.
  • Copy the API key into the plugin settings.

How it works

  • Emails will be sent for any that full fills the following criteria:
    • page i not static
    • page is not scheduled
    • page is published
    • page creation date is after the start date in the plugin settings
    • page no-index option OFF (in page SEO settings, this can be used for excluding pages from the newsletter, e.g. for testing)
    • no newsletter for this page has been sent before. For exceptions see warnings below!.
  • An email will be sent whenever a page is saved for the first time matching these criteria. This is normally the initial creation, or saving a draft page as published.
  • The mail body contains the cover image (optionally), the page title and the content (including html).

Warnings

  • Changing the slug of a page (friendly URL in page SEO settings) will cause a resend!
  • If the plugin is paused (on this plugin's settings page), mails will not be send. However, when active again, mails will be sent for pages that were created while paused, when these pages are modified and saved matching the above criteria.
  • If the plugin is deactivated and reactivated from the Bludit admin plugin page, the sent list will be cleared. This means mails will be sent again for any page modified matching the criteria!

Known Issues

  • A newsletter should be sent when a a scheduled page is due and appears on the site. However, the internal trigger for this doesn't seem to work. You can (messily) patch this by adding the line Theme::plugins('afterPageModify', array($pageKey)); into the function scheduler() before line $saveDatabase = true; in the file pages.class.php.

License

MIT, see LICENSE file.

buttondown-bludit's People

Contributors

johanez avatar

Stargazers

Berteh avatar Roman avatar Edi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.