是否可以为 mailchimp 编写拖放模板? [英] Is it possible to code drag&drop templates for mailchimp?

查看:38
本文介绍了是否可以为 mailchimp 编写拖放模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎mailchimp 有两种类型的模板:经典模板和拖放"模板.

Seems like mailchimp has two types of templates: classic and "drag and drop."

经典模板(他们称之为主题")具有使用 mc: 属性定义的内容区域.其中一些可以重复但不能移动.

The classic templates (they call these "themes") have content areas defined using the mc: attrubutes. Some of these can be repeated but can't be moved around.

拖放"模板具有容器"区域,该区域接受菜单中的内容块,该菜单仅在模板为拖放"类型时出现.

The "drag and drop" templates have "container" zones which accept content blocks from a menu which appears only when the template is of the "drag and drop" kind.

似乎无法编码和导入拖放"模板.我尝试将其中一个导出为 HTML,但收到警告,提示重新导入模板将消除其拖放功能.

Seems that it is impossible to code and import a "drag and drop" template. I tried exporting one of theirs to HTML but was given a warning that re-importing the template will eliminate its drag and drop functionality.

我是否正确理解只能使用 mailchimp 模板标签编码和导入经典"模板,还是我遗漏了什么?

Am I correct in understanding that it is only possible to code and import "classic" templates using the mailchimp template tags or am I missing something?

推荐答案

您可以使用拖放操作,但在我能找到的任何地方都没有记录.我能够获得他们用来让内容"和设计"面板出现在右侧的源代码.

You can use drag and drop, but it's not documented any where that I could find. I was able to get the source code they used to get the "content" and "design" panels to appear on the righthand side.

为了显示内容"面板,您需要使用此gist!它只是来自单列基本模板的源代码.将代码粘贴到编辑代码"面板中.您只需要遵循文件中的正确格式即可.我还没有解析它来告诉你什么是什么.

In order to get the "content" panel to appear you need to use code in this gist! It's just the source code from the single column basic template. Paste the code into the "Edit Code" panel. You just need to follow the proper formatting in the file. I haven't parsed through it yet to tell you what is exactly does what.

可以在此处找到有关如何修改模板 (mc:edit="body") 和设计面板的文档 MailChimp 的知识库:自己编写代码

The documentation on how to modify your templates (mc:edit="body") and have the design panel can be found here MailChimp's Knowledge Base: Code Your Own

这篇关于是否可以为 mailchimp 编写拖放模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆