Mailer - Campaigns
Content
Currently, the body of the builder is a standard Enso FlexibleContentField.
Available RowSpecs
By default, the Campaign email builder comes with Image, Text, CTA and Divider rowspecs.
You can add additional Rowspecs to the app\Crud\Mailer\Campaign.php file if you need them.
Templates
You can override the default row template by adding override templates in views/vendor/enso-crud/modules/mailer/email/rows.
This is also where you should place templates for custom rows that you have added to the mailer, using filenames that match the name you are using to include the RowSpec on your customised Crud config.
Setting up Social Icons
Until we add proper Social settings to Enso, you will have to manually set up social icons for the email footer for each site. To do this, create a new template views/vendor/enso-crud/modules/mailer/email/partials/social-icon-list.blade.php. Then, include a partial for each social icon specifying the link and image_url to use, like:
@include('enso-crud::modules.mailer.email.partials.social-icon', [
'social_link' => 'https://twitter.com/MarmotTours',
'social_icon' => 'https://cdn-images.mailchimp.com/icons/social-block-v2/outline-light-twitter-48.png',
])
Customising Template Styles
Enso will publish two sass files:
- An 'Enso' that will be overwritten with Enso updates -
resources/assets/sass/enso/enso-mailer.scss; - A 'local' that you can edit and won't be overwritten -
resources/assets/sass/enso-mailer.scss;
To update basic styles, copy variables from the 'Enso' file into your 'local' one where marked, and update as required.