#17 /home/aca/ProcessWire\WireHooks->runHooks() #16 /home/aca/ProcessWire\Wire->_callMethod() #15 /home/aca/ProcessWire\ProcessController->_execute() #13 /home/aca/ProcessWire\WireHooks->runHooks() #12 /home/aca/ProcessWire\Wire->_callMethod() #11 /home/aca/ProcessWire\ProcessPageEdit->_execute() #10 /home/aca/ProcessWire\ProcessPageEdit->renderEdit() #8 /home/aca/ProcessWire\WireHooks->runHooks() #7 /home/aca/ProcessWire\Wire->_callMethod() #6 /home/aca/ProcessWire\PageMjmlToHtml->addViewRaw() #3 /home/aca/ProcessWire\WireHooks->runHooks() #2 /home/aca/ProcessWire\Wire->_callMethod() #1 /home/aca/ProcessWire\Page->_callUnknown() #0 /home/aca/ProcessWire\Wire->_callUnknown() If your layout looks weird somehow, try disabling the minification in the options.ĭEBUG MODE BACKTRACE ($config->debug = true): This option is available in the module’s settings. If you are using the markup regions output strategy, it might be best to not append files to preserve your MJML markup before calling the MJML API. Its title and a message inviting to contact the administrator for editors If there’s an error the page will display: The code viewer is only shown to superusers. Only visible to users with the page’s edit permissionĪ shortcut is also added under “View” in the edit page to open the raw code in a new tab Not added if the page is rendered outside of a PageView The MJML output is cached to avoid repetitive API callsĬleared if the template file has been modifiedĪ simple (dumb?) code viewer highlights lines with errors/warningsĪ button is added to quickly copy the raw code of the generated newsletter You will either get error/warning messages or your email properly formatted and ready-to-go.įrom there you can copy/paste the raw generated code in an external mailing service or distribute your newsletter using ProMailer. Once your credentials are validated, select the template(s) in which you’re using the MJML syntax, save and go visualize your page(s) to see if everything’s good. Write your template using MJML combined with Processwire’s API and this module will automatically convert your code into a working newsletter thanks to their free-to-use Rest API.įor this module to work you will need to get an API key and paste it in the module’s configuration. A module allowing you to write your Processwire template using MJML and get a converted HTML output using MJML API.Ĭreated by Mailjet, MJML is a markup language making it a breeze to create newsletters displayed consistently across all email clients.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |