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:
Tomas Bures 2018-12-29 11:21:25 +01:00
parent 6eead89fef
commit e786964411
5 changed files with 36 additions and 21 deletions

View file

@ -186,7 +186,7 @@ fieldTypes['radio-enum'] = {
cardinality: Cardinality.SINGLE,
getHbsType: field => 'typeRadioEnum',
render: (field, value) => {
const fld = field.groupedOptions[value];
const fld = field.settings.options[value];
return fld ? fld.name : '';
}
};
@ -203,7 +203,7 @@ fieldTypes['dropdown-enum'] = {
cardinality: Cardinality.SINGLE,
getHbsType: field => 'typeDropdownEnum',
render: (field, value) => {
const fld = field.groupedOptions[value];
const fld = field.settings.options[value];
return fld ? fld.name : '';
}
};