Templates are the HTML markup that your app block injects into the email and/or page and forms HTML markup. The guidance on this page should be considered when authoring your templates to ensure your extension block markup works as expected.
Please ensure your app block HTML is well formed and valid HTML.
Our recommendation is to building your app block HTML within the Easy Editor itself using the Edit source option to ensure your app block's content displays well and interacts well with EasyEditor settings and entities.
This is strongly recommended to ensure your app block can display in columns, and if you include buttons within your app block. Utilising the EasyEditor to create and build column content will make sure it adheres to wider EasyEditor rules and displays properly on different devices/in different inboxes.
Once you are happy that the markup for your app block is working well, take the markup and ready to use as the template field for your app block when you register it.
We strongly recommend defining the min_width field and value in your App Blocks JSON, as without it your App Block cannot be positioned within columns within EasyEditor which severely limits the layout possibilities when using your App Block.
If you want to reference your app block's parameter values then simply use the token pattern: [[id of parameter]] in your HTML to insert the value.
<h2>Welcome [[firstName]] to the Acme monthly newsletter</h2>
When referring to parameters please ensure you get the case correct as the references are case sensitive.
When referring to any external assets, such as images, please ensure that you refer to them using HTTPS based links, as insecure web assets will not be loaded in preview and often not within the email clients either.
Your app blocks can be designed one of two ways - which way you choose determines how much control Dotdigital users have over styling the content of the extension blocks within their wider email campaigns:
This option allows an end user to manage the styles that the app block is utilizing in the app style manager within EasyEditor, available under Utilities > Manage All Styles.
Click the App Block Styles button to edit the styles for the following HTML tag types:
In order for users to be able to manage these options, you must use these HTML tags and not attempt to override the style of them with either inline style attributes or CSS. As well as ensure you have set the inherit_styles field to true in your App Blocks JSON.
In the EasyEditor style editor select the tag type you want to edit the style for:
Edit the tag style as desired:
If you either insert your own specific styles into your app blocks HTML using either inline style attributes or set the inherit_styles field to false in your App Blocks JSON, then our style manager won’t affect those tags, leaving them as is.
This means the app block content might have specific styles that clash or do not mesh well with a user’s overall campaign. In general Option 1 is recommended to avoid this and leave the user in control.
If you do use styling within an app block, those styles will be extracted during the send process and inserted into the email campaign header to ensure proper rendering in different types of inboxes.
You may need to call back to your platform to generate dynamic content for use within your App Block. This can be done using a special edc tag (External Dynamic Content) within your App Blocks markup of:
<edc path="https://yourplatform.io/getDynmaicContent" />
The system will call the URL defined in the path attribute of the edc tag with a HTTP GET and expect to receive the content that will replace the edc tag in the markup as well as a 200 OK HTTP response code.
You may use parameter references in your path value, so you can pass any required information within the URI to your service. e.g.
Remember to protect data
Please do not merge any personally identifiable information into the path value as this will be in the public domain as part of the URI.
<h1>Welcome [[firstname]]</h1> <p>Your current Super Saver points balence is:</p> <h2><edc path="https://yourplatform.io/getDynamicContent?uid=[[userSuperSaverId]]"/></h2>
<h1>Welcome [[firstname]]</h1> <p>Your current Super Saver points balence is:</p> <h2>5500</h2>
Updated about 2 months ago
Lets get your first app block uploaded