0
インポート手順中に私はimg
を編集可能とマークし、いくつかのコンテンツセクションをmultiline
構造に入れました。インポートされたテンプレートは、クライアントのテンプレートセットに表示されますが、私はそれらを編集しようとすると、私は代わりに、実際の編集者のZIP/HTMLのアップロードオプションを提示:私の、私のコードベースからHTMLインポートされたキャンペーンモニタテンプレートを編集可能にするにはどうすればいいですか?
独自のテンプレートオブジェクトは、エクスポートコードを持っています
class EmailBodyTemplate(models.Model):
...
def migrate_email_template(self, cm_client_id, cm_token):
cm_template = Template(cm_token)
# Basically I expose a specially tailored HTML version of my template
# for CM: adding editable to imgs, introducing multiline wrappers and
# adding unsubscribe, view in browser and other special links
html_url = settings.HOME_URL + reverse('email_import_view', args=(self.id,))
template_id = cm_template.create(cm_client_id, self.name, html_url, None)
self.template_id = template_id
self.save()