Some fixes in RSS feed processing.
It is now possible to have hierarchical merge tags (separated by "."). The merge tags are now case sensitive. Mailtrain allows passing element "mt:entries-json" in the RSS item feed. If this is detected, it parses the json structure and makes it available through RSS_ENTRY_CUSTOM_TAGS. Then it can be used as [RSS_ENTRY_CUSTOM_TAGS.field_quote_text.rendered]
This commit is contained in:
parent
6eead89fef
commit
e786964411
5 changed files with 36 additions and 21 deletions
|
@ -262,7 +262,8 @@ class CampaignSender {
|
|||
tags['RSS_ENTRY_LINK'] = rssEntry.link;
|
||||
tags['RSS_ENTRY_CONTENT'] = rssEntry.content;
|
||||
tags['RSS_ENTRY_SUMMARY'] = rssEntry.summary;
|
||||
tags['RSS_ENTRY_IMAGE_URL'] = rssEntry.image_url;
|
||||
tags['RSS_ENTRY_IMAGE_URL'] = rssEntry.imageUrl;
|
||||
tags['RSS_ENTRY_CUSTOM_TAGS'] = rssEntry.customTags;
|
||||
}
|
||||
|
||||
return tags;
|
||||
|
@ -311,6 +312,7 @@ class CampaignSender {
|
|||
const sendConfiguration = this.sendConfiguration;
|
||||
|
||||
const {html, text, attachments} = await this._getMessage(campaign, list, subscriptionGrouped, mergeTags, true);
|
||||
console.log(html);
|
||||
|
||||
const campaignAddress = [campaign.cid, list.cid, subscriptionGrouped.cid].join('.');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue