Example - add a mapping to a dynamic frame
In this example, you add a mapping to a dynamic frame. Doing this automatically fills in template variables with metadata from the asset chosen to be inserted in the frame. For example, if an asset has a relation to a brand, you could change the brand name variable automatically by inserting an asset in a frame.
You can add multiple mappings to the same dynamic frame.
To add a mapping to a dynamic frame:
-
On the menu bar, click Publisher > Templates.
-
On the Templates page, click the template you want to modify.
-
On the template details page, on the Dynamic frames tab, click
Dynamic frame.
-
In the Dynamic frame dialog, in the Frame drop-down list, click an option.
-
On the Mappings tab, click Add mapping.
-
Set the Source relation field to Brands, the Store property field to Name, and the In Template value field to Brand.
NoteIf you don't select a source relation, the template value will be filled with metadata from the asset itself.
-
Click Save