This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aaron Gerig
committed
Sep 17, 2018
1 parent
e620c9d
commit 34f7ed4
Showing
2 changed files
with
11 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,23 @@ | ||
# Email development | ||
|
||
A full-featured workflow for responsive emails comes with this bundle. | ||
To use its functionality inside a pimcore email, simply add the bundle in your AppKernel.php | ||
and extend the base layout. | ||
Responsive emails are made possible with the awesome [Pimcore Emailizr](https://github.com/dachcom-digital/pimcore-emailizr). | ||
To use its functionality inside a pimcore email, follow these simple steps. | ||
|
||
```php | ||
$collection->addBundle(new \Hampe\Bundle\ZurbInkBundle\HampeZurbInkBundle()); | ||
``` | ||
First extend your email template with the layout from Emailizr. | ||
|
||
```twig | ||
{% extends 'HampeZurbInkBundle:FoundationForEmails:2/base.html.twig' %} | ||
{% extends '@Emailizr/layout.html.twig' %} | ||
``` | ||
|
||
Usually this is done inside your own email layout. | ||
Then the only thing left is that you have to include a link to a css file. | ||
Now you can build your email within the following twig block. | ||
|
||
```twig | ||
{% block preHtml %} | ||
{# add your css files here, please use a bundle relative path #} | ||
{{ zurb_ink_styles.add('@WvisionBundle/Resources/public/static/css/mail.css') }} | ||
{% block content %} | ||
{# email contents go here #} | ||
{% endblock %} | ||
``` | ||
|
||
Now you can build your email within the following twig block. | ||
The full documentation on what you can use can be found [here](http://foundation.zurb.com/emails/docs/sass-guide.html) (read carefully)! | ||
Please read the [Foundation for Emails documentation](http://foundation.zurb.com/emails/docs/sass-guide.html) carefully! | ||
By the way, Pimcore editables are fully supported! | ||
|
||
```twig | ||
{% block content %} | ||
{# email contents go here #} | ||
{% endblock %} | ||
``` | ||
Further information can be found [here](https://github.com/dachcom-digital/pimcore-emailizr). |