Theme Development in Mautic 2.0

As some of the new features found in Mautic 2.0 make their way into your workflow, we wanted to take a couple of minutes to further outline some of the capability in the email/landing page builder.

Currently the new builder doesn’t work with the content slots defined in PHP, but instead directly in the HTML template. This allows the slots to be moved around the theme layout, giving the user that ability to add/remove them as needed.

@JaneDoe has invited you to join Awesome inc!

Slot definition

The slot can be defined by a single HTML attribute data-slot="{slot type here}". For example, the text slot can be defined even with the demo content.

When the theme is opened in the builder, the div with attribute data-slot="text" will make the text inside the div editable within the inline Froala editor.

The 2 slot types currently built:

  • Image: Inserts a single image into the div. User can click on it and edit it with options which provides Froala editor (link, change image source, alt text, …)
  • Button: Insert a HTML button. User can define URL as well as padding, size and position.

Slot containers

As stated before, users can drag & drop the new slots into the theme. So as a theme developer, you have to define where the user can drop the slots. You can do it again with a single HTML attribute data-slot-container. Example:

@JaneDoe has invited you to join Awesome inc!

This way the builder will let users drop the new slots into this container. In the example above there is already one predefined slot which user can move to another container, remove or edit.

This functionality will provide you with lots of creative freedom for designing and developing your own unique email and landing pages. Have a unique design? Share it with the community! We would love to see how you’re using Mautic to engage your audience.

Share this blog article:
Picture of escopecz

escopecz

More 📝's in ''

For marketers

Navigating Gmail and Yahoo’s New Spam Policies: What Mautic Users Need to Know

Email marketing remains a cornerstone in the digital marketing toolbox for businesses big and small. Keeping on top of the latest developments in the industry is therefore vital to ensure your success. Here’s some important news about sending to Gmail addresses that you may need to factor into your marketing.

For marketers

9 Tips To Secure Data in Email Marketing

Email marketing has become an essential part of the modern business landscape, with companies of all sizes using it to reach their customers and prospects. With that, there is also an increased risk of data breaches and security threats. That’s why it’s essential to take steps to secure data in email marketing

Search

Use the search bar above by typing terms and pressing enter.