Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Commit

Permalink
switched to manual snippet installation so messing up kirby builder s…
Browse files Browse the repository at this point in the history
…nippet root can be avoided

Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed May 22, 2017
1 parent 3ed95fc commit 3424708
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions example.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ export PATH="$PATH:./node_modules/.bin"

Read [all about it here](https://github.com/bnomei/kirby-mailjet#setupmailjetaccount).

### Installation of Panel Fields
### Installation of Panel Fields and Snippets

This plugin comes with some example panel fields to get you started. You can find their their [global field definitions](https://getkirby.com/docs/panel/blueprints/global-field-definitions) in the [kirby-mailjet/blueprints/fields](https://github.com/bnomei/kirby-mailjet/blob/master/blueprints/fields/) folder.

Copy **all** of provided global field definitions from the plugin to your `site/blueprints/fields` folder. Create the folder if needed.

> **Why copy?** The plugin could install these with the example but the examples should be disabled on prodution server. So you have to copy them sooner or later. Furthermore you will probably make adjustments to the button labels etc to fit your needs and that should not happen in the plugins folder.
Also copy **all** of provided snippets from the plugin to your `site/snippets` folder.

> **Why copy?** The plugin could install these with the example but the examples should be disabled on prodution server. So you have to copy them sooner or later. Furthermore you will probably make adjustments to the button labels and snipepts etc to fit your needs and that should not happen in the plugins folder. Also I do not want to mess up [Kirby Builders snippet root folder](https://github.com/TimOetting/kirby-builder/blob/master/builder.php#L43).

### Create Example Page
Expand Down
4 changes: 4 additions & 0 deletions kirby-mailjet-examples.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
SNIPPETS
***************************************/

/* manual file copy by user is better since examples disabled on production servers anyway.
*/
/*
$snippets = new Folder(__DIR__ . DS . 'snippets');
foreach ($snippets->files() as $file) {
if($file->extension() == 'php') {
Expand All @@ -46,6 +49,7 @@
if(c::get('plugin.mailjet.buildersnippets', false)) {
c::set('buildersnippets.path', __DIR__ . DS . 'snippets');
}
*/


/****************************************
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kirby-mailjet",
"description": "Kirby Mailjet makes sending emails with Mailjet simple.",
"version": "0.6.1",
"version": "0.6.2",
"author": "Bruno Meilick",
"type": "kirby-plugin",
"license": "Commercial"
Expand Down

0 comments on commit 3424708

Please sign in to comment.