Layout Block
Tutorials
What are Layout Blocks?
Standard Parameters
Custom JSON Schema
Visual Elements are the building blocks of the narratives. You can define as many as you like and use them however you want. A couple of examples could be: text with image, product listing, banners or blog articles.
To define the Visual Elements for the Narratives, open the respective menu Marketing > Visual Elements.
Click on the Add-button and give It a unique key and click save.
Configuration
The configurations for Magento and Shopware are slightly different.
An example case for Magento could be:
In this configuration there are two parameters you have to define. If you require any more, you can add them with the add-button.
magento_block_type: The block you want to use for the template.
magento_block_function_setTemplate: The template you want to use.
About the first parameter content-resource you don’t have to worry, it’s here to trigger the content-resource checkbox at the top right. If this checkbox is on, the visual element will appear in the material dropdown of the campaign.
The second thing to do is to define the json schema you want to use for this visual element. This controls the user interface for controlling the input in the Narrative-view.
An example case for Shopware could look like this:
Here you can see you have to define a template and then two further parameters, that are relevant to the template. After that you can define the json schema.