我正在尝试根据区域选择为订阅者设置特定的RSS源。我试图使用条件合并标记块。我下面的内容不起作用,我不知道为什么。
我期望获得的是平铺文本(例如,北美新闻标题)和RSS提要标题,具体取决于广告系列接收者的区域。收件人通过注册表格设置了他们的区域,即REGION = North America
。如果收件人的区域设置为North America
,则会在第一个*|IFELSE:REGION
标记之前正确显示所有内容,然后只显示代码。
*|IF:REGION = No Region|*News Headlines Offline
No headlines for you...Your region is not set.*|ELSEIF:REGION = North America|*
North American News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/north-america/feed/|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSEIF:REGION = European Union|*
European Union News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/western-europe/feed/|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSEIF:REGION = Africa|*
African News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/sub-saharan-africa/feed/|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSEIF:REGION = East Asia|*
East Asian News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/east-asia/feed/|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSEIF:REGION = South Asia|*
South Asian News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/south-asia/feed/|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSEIF:REGION = Central America / Caribbean|*
Central American/Caribbean News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/caribbean/feed/|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSEIF:REGION = Eastern Europe / Russia|*
Eastern Europe/Russia News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/eastern-central-europe/feed|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSEIF:REGION = Middle East|*
Middle East News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/middle-east-north-africa/feed/|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSEIF:REGION = Oceania|*
Oceania News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/oceania/feed/|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSEIF:REGION = South America|*
South American News Headlines
*|FEEDBLOCK:https://globalvoicesonline.org/-/world/latin-america/feed/|**|FEEDITEMS:|*
*|FEEDITEM:TITLE|**|END:FEEDITEMS|**|END:FEEDBLOCK|**|ELSE|*nil*|END:IF|*
Your region is set to *|REGION|*. Change Region >>
答案 0 :(得分:0)
确保您在Mailchimp的文本编辑器的源代码视图中输入条件合并标签块。在mergetags中间拼接格式化标记有一个讨厌的习惯,这样你的条件合并标签在预览模式下看起来很完美,但实际上代码看起来像这样:
*|ELSE</span>IF: Region = North America|*
这显然不会很好,但看起来它可以在电子邮件的预览中使用。只需轻弹到代码视图,确保在mergetags中间没有随机代码。
可能不适用于您的问题,但它导致我的结果与您描述的结果相同。