Skeleton plugin for creating your own twig extensions and registering them in Mautic
Switch branches/tags
Nothing to show
Clone or download
Latest commit af8c451 Dec 11, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Config Rename some things Dec 11, 2017
Twig/Extension Rename some things Dec 11, 2017
.gitignore Initial commit Dec 10, 2017
LICENSE.md Rename some things Dec 11, 2017
MauticTwigPluginSkeletonBundle.php Rename some things Dec 11, 2017
README.md Add composer to readme Dec 11, 2017
composer.json Rename some things Dec 11, 2017

README.md

Mautic Twig Plugin Skeleton

This is a functioning (although basic) example of how to create a plugin for Mautic. For full docs on creating plugins for Mautic, see the Mautic Developer Documentation.

Installation

composer require dongilbert/mautic-twig-plugin-skeleton-bundle

Alternative Installation

  • Download this repo and place it in a folder within the plugins dir of your Mautic installation. Be sure the folder name matches the name of the bundle file in the root of this repo. (Or whatever you change it to)

Making use of this

  • You can add as many extensions as you'd like, just be sure to add them all to the services => other array within the Config/config.php.
  • After making your modifications and placing the code, clear your cache.
  • Go to your plugins page in Mautic and then click Install / Upgrade Plugins
  • You now have access to your custom twig extension in any of your templates!