Package Data | |
---|---|
Maintainer Username: | DesignPond |
Maintainer Contact: | cindy.leschaud@gmail.com (Cindy Leschaud) |
Package Create Date: | 2016-06-21 |
Package Last Update: | 2018-08-07 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:09:17 |
Package Statistics | |
---|---|
Total Downloads: | 234 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Newsletter interface builder and send via mailjet api
!!! WARNING work in progress this is a specific package for specific content !!!
Via Composer
$ composer require designpond/newsletter
"intervention/image": "dev-master",
"inlinestyle/inlinestyle": "1.*",
"maatwebsite/excel": "~2.0.0",
"mailjet/mailjet-apiv3-php": "^1.1"
This package is used with Laravel 5.2 adn Mailjet API v3 Created for multiple websites of La Faculté de droit de l'Université de Neuchâtel. The content is meant to be used with arrets, analyse, categories and multi sites
Publish with php artisan vendor:publish
Required
Optionnal
In newsletter.php define building blocs to use if you enable "groupe" you have to enable "arret", both go with another!
Define the models and files/images paths.
Add Mailjet credentials to your .env file
Migrate tables and seed types with php artisan db:seed --class=TypeSeeder
If you want routes with prefix set it in env.js in newsletter/js
Javascript and css
Elements to add
In the head
@if(isset($isNewsletter))
@include('newsletter::Style.main', ['campagne' => isset($campagne) ? : null])
@include('newsletter::Style.redactor')
@endif
Before end of the body
@include('newsletter::Script.config')
@if(isset($isNewsletter))
@include('newsletter::Script.date')
@include('newsletter::Script.redactor')
@include('newsletter::Script.angular')
@include('newsletter::Script.datatables')
@include('newsletter::Script.main')
@endif
You have to implement upload routes for wysiwyg redactor.js
Route::post('uploadRedactor', 'UploadController@uploadRedactor');
Route::post('uploadJS', 'UploadController@uploadJS');
Route::get('imageJson/{id?}', ['uses' => 'UploadController@imageJson']);
Route::get('fileJson/{id?}', ['uses' => 'UploadController@fileJson']);
You have to Implement ajax routes:
Route::get('arret/{id}', 'ArretController@simple'); // build.js
Route::get('arrets/{id?}', 'ArretController@arrets'); // build.js
Route::get('categories/{id?}', 'CategorieController@categories'); // utils.js
And configure the path to you routes for angular`in newsletter/js/env.js
// Admin url
window.__env.adminUrl = 'http://dev.local/admin/';
// Base url
window.__env.ajaxUrl = 'http://dev.local/admin/ajax/';
Please see CHANGELOG for more information what has changed recently.
If you discover any security related issues, please email cindy.leschaud@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.