Add your comments directly to the page. Include links to any relevant research, data, or feedback. |
|
Since the plan is to include the GrapeJS builders as optional in 3.3, we need a way to hide templates specifically designed for GrapeJS that won’t be compatible with the legacy builder. This is why I will bring over the ability to filter templates based on the builder enabled. The question is, do we want all legacy templates to be available to GrapeJS or only those specifically designed for GrapeJs for the most optimal GrapeJs experience?
I plan to make Mautic aware of which templates are compatible with the currently enabled builder through the template’s config. If the template is missing this configuration option, it will be assumed to be “legacy.” It will be cleaner if I can keep this logic in Mautic and the template configs as it will just require the template’s config to tell Mautic what it is compatible with. However, if we want GrapeJS to load all legacy templates by default, then I will have to push that logic to the builder code as an interface or config option for the builder to tell Mautic what templates it is compatible with.
If we go with the former (my preference) and someone wants a legacy template to be compatible with GrapeJs, they could simply edit the template’s config. We could also default all (or specific) default legacy templates to support GrapeJs in addition to legacy.
Option 1: Templates tell Mautic what builder(s) they are compatible with | Option 2: The builder tells Mautic what templates it is compatible with | |
---|---|---|
Description | Each builder will tell Mautic what it is known by (likely the integration name since the GrapeJs plugin is already developed this way). Mautic simply reads a parameter in the template’s config which tells it which builders it is compatible with and only the applicable themes/templates become visible to the UI based on which builder is enabled (default legacy). | In addition to option 1, Mautic will have to “consult” the builder to know if it supports templates other than its own (eg. grapejs + legacy). |
Pros and cons |
|
|
Estimated cost |
Add action items to close the loop on open questions or concerns
Summarize the outcome below