developer-documentation icon indicating copy to clipboard operation
developer-documentation copied to clipboard

Explain how to execute Mautic actions in plugins

Open CreaoticX opened this issue 9 years ago • 0 comments

Something that I think is significantly missing from the plugin documentation is a description of how to execute common functions that Mautic already is coded to do, but that a plugin may need to initiate itself. Here are a couple of examples.

  1. I was thinking of creating a plugin that could be pinged when new content was published to a site and then email all leads or a segment of leads what the new content is about with a link to read further. Mautic already has the functionality to create emails built in, however the docs don't explain how to do this.
  2. I'm trying to build a plugin that accepts lead data from an external source. This lead data has additional data that I want to be included in the lead record, and I want to put it in as three custom fields. The documentation explains how to add fields to forms, but not how to create custom fields.
  3. I know there has been talk about exporting campaigns so that they can be shared. However, another option would be to create a plugin that is programmed to create predesigned campaigns and anytime a user wants to create a new campaign of a specific type they just go to the plugin and tell it to create it. The plugin adds all the campaign elements with placeholders and then the user can go into campaign and customize it as needed.

I'm think the docs needs a section called 'Executing Default Mautic Actions' or something that explains how to do these types of things from a plugin like adding a form, custom field, email, etc. I'm willing to start creating it, but I'll probably have lots of questions since I'm just starting to work my way through figuring out the Mautic code. I just wanted to see what other people's thoughts were or if there was a reason this type of information isn't included in the documentation already.

Thanks.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

CreaoticX avatar Aug 21 '16 12:08 CreaoticX