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
|
@ -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 : '';
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue