Mjml emailbuilder or anything that works better --- where is it now?

hi

how can we get back the mjml email builder back ?

thx
sayantan

Hi, in the docs you can find how to turn it on and off:

can you please tell me the exact file name for updating them?
“builder”: [“legacy”, “grapesjsbuilder”],

As the documentation mentioned: config file.
There is only one file there, which is the config file:
config.json

./app/bundles/PageBundle/Assets/WebhookPayload/page_on_hit.json
./app/bundles/CoreBundle/Translations/en_US/config.json
./app/bundles/CoreBundle/Assets/json/regions.json
./app/bundles/CoreBundle/Assets/json/countries.json
./app/bundles/FormBundle/Assets/WebhookPayload/form_on_submit.json
./app/release_metadata.json
./themes/Mauve/config.json
./themes/vibrant/config.json
./themes/nature/config.json
./themes/fresh-center/config.json
./themes/neopolitan/config.json
./themes/cards/config.json
./themes/fresh-left/config.json
./themes/fresh-fixed/config.json
./themes/aurora/config.json
./themes/goldstar/config.json
./themes/blank-grapejs/config.json
./themes/sunday/config.json
./themes/blank/config.json
./themes/oxygen/config.json
./themes/paprika/config.json
./themes/confimme/config.json
./themes/sparse/config.json
./themes/coffee/config.json
./themes/skyline/config.json
./themes/fresh-wide/config.json
./themes/brienz/config.json

anyone of these ?

Hi @cadentic

All existing themes can be used with the new grapesjs email builder (in the HTML mode).
To make a theme work with it it needs to be configured accordingly:
e.g. in the /themes/paprika/config.json add:

“builder”: [“legacy”, “grapesjsbuilder”],

Hint: if the config is missing the system just assumes it is legacy

On top of that there is mjml. An existing theme is not automatically mjml enabled. It needs a special file/syntax for it.

Only themes that have a file like this email.mjml.twig are enabled.
For example: themes/brienz/html/email.mjml.twig

how can i change the themes?
is there any specific commands for cleaning cache or we will just remove var/cache

/themes/paprika/html/email.mjml.twig
./themes/confimme/html/email.mjml.twig
./themes/brienz/html/email.mjml.twig

You should re-upload them.
The changes will be reflected in the emails created after the reupload.
Joey

whole email tab is not working .

Can you give me a screenshot to explain what do you call an email tab?
Also state your Mautic version as there was a change where the config file has chnaged.

 cat themes/confimme/config.json
{
  "name": "Confirm Me",
  "author": "Friendly Automate",
  "authorUrl": "https://friendly.is",
  "builder":  [ "legacy","grapesjsbuilder"],
  "features": [
    "email"
  ]
}

cat themes/brienz/config.json
{
  "name": "Brienz",
  "author": "Friendly Automate",
  "authorUrl": "https://friendly.is",
  "builder": ["legacy","grapesjsbuilder"],
  "features": [
    "email"
  ]
}

cat themes/brienz/config.json
{
  "name": "Brienz",
  "author": "Friendly Automate",
  "authorUrl": "https://friendly.is",
  "builder": ["legacy","grapesjsbuilder"],
  "features": [
    "email"
  ]
}

 /bin/php7.4 /var/www/somepathtothefolder/bin/console cache:clear

 // Clearing the cache for the prod environment with debug
 // false


 [OK] Cache for the "prod" environment (debug=false) was successfully cleared.



Thx. So what is not working?

where are the mjml based builders it stills opens up HTML codes?

This is the MJML based builder. It can also edit HTML and MJML.
How cool is that.
Here is an overview.

only this two are available not the one shown in the video while i have the .twig file for the same brenz
theme.


no mjml code mode is there.


all of these themes are available but no mjml

The config file in your themes has to use an array for the builder:

{
  "name": "Mona Lisa",
  "author": "Leonardo",
  "authorUrl": "https://davin.ci/",
  "builder": ["grapesjsbuilder"],
  "features": ["email","page","form"]
}

still no it showing no njml. it’s the same.
so it did not work.

The changes in the config will make sure the templates have ‘grapesjsbuilder’ listed next to the name.
If you don’t have the GrapesJs builder enabled, then you need to turn it on in plugins.

yes all of these were enabled.
do we have any cli option to reinstall all the email templates and themes ?

Delete and upload. That simple.