CampaignContent
OCP App SDK / CampaignContent
Interface: CampaignContent
Defined in: src/app/Channel.ts:165
The translated content template.
Properties
settings
settings:
FormData
Defined in: src/app/Channel.ts:169
Static data from the content settings form. This is the same data sent to Channel.target.
template
template:
FormData
Defined in: src/app/Channel.ts:174
Potentially dynamic data from the content template form. Any string fields that contained ODP Liquid have been
translated into a simple substitution template where substitution sources are of the form %%name%%
.
variables
variables:
string
[]
Defined in: src/app/Channel.ts:181
The complete set of variable names used within all template fields. Eg, if the template consists of
Hello, %%b0%%. Still interested in that %%b1%%? Buy now at %%b2%%!
, the set of variables would be
['b0', 'b1', 'b2']
. This information can be helpful when translating templates into external formats,
performing substitutions locally, etc.
Updated 15 days ago