Before you start
Things you need to know:
You must have created at least one Custom data table.
Learn more in Create a Custom data table.
To get started, you must either create a new SmartBlock or edit an existing one.
Learn how in Create and edit a SmartBlock.
Add data to a SmartBlock
On the Edit SmartBlock page, expand the Settings (⋯) drop-down menu at the top and select Table Lookup.
Select Add Lookup + to open the Custom data table Lookup menu.
Expand the CUSTOM DATA TABLE drop-down menu and select your Custom data table.
Expand the Lookup Field Type drop-down menu and choose from:
Merge Parameter
Person
Product
The Lookup field type is the type of data collection that you’re pulling the lookup field value from to check against your Custom data table.
For Lookup Field, enter the Lookup field for the data you want to use.
Learn more in the section Select a lookup field.
For Person or Product fields enter the prefixes extend. or ex. before the field name:Select ADD.
After adding the Custom data table to the SmartBlock you can reference it using Jinja in either the SmartBlock editor or the SmartBlock’s Layout.
Add data using the SmartBlock editor
In the SmartBlock editor, select the Design tab.
Expand the drop-down menu for the element you want to edit.
The element must be compatible with Jinja. For example, Image Headline.For the element’s text field enter the Jinja code to identify the data you want to use.
Use the following formats for a Person field, Merge field, or Product field:
Person field or Merge field
{{ table.[table_id].[table_field_id] }}
Product field
{{ product.table.[table_id].[table_field_id] }}
Select SAVE.
Add data using the SmartBlock Layout
In the SmartBlock editor select the Edit layout (</>) icon.
Find the area of the layout you want the table’s data to display.
Enter enter the Jinja code to identify the data you want to use into the layout using the following formats for a Person field, Merge field, or Product field:
Person field or Merge field
{{ table.[table_id].[table_field_id] }}
Product field
{{ product.table.[table_id].[table_field_id] }}
Select VALIDATE OUTPUT and SAVE.
The data is now available in the selected layout for use in your SmartBlocks.