getStoredValue

Returns the requested field value from Impulse storage. Functions similar to get-set field manipulator.

Input Parameters:

{{ input | getStoredValue: '<key>', '<add to or replace input (optional)>', '<stored field id (optional)>', '<stored content type (optional)>', '<stored content id (optional)>', '<get field id (optional)>', '<stored language id (optional)>' }}

Examples: Input

{{ '' | getStoredValue: 'static key' }}

<div data-gb-custom-block data-tag="capture">{{'static' | append: content.fields.title.value}}</div>{{ '' | getStoredValue: my_key }}

Output

<value stored in Impulse under key 'static key'>
<value stored in Impulse under key liquid key variable value my_key>

getStoredValue also supports more parameters for matching non-liquid key for store field manipulator.

Input

{{ content.fields.body.value | getStoredValue: '', 'add', 'title', 'people', 'primary_content::bltbb88f007c5115ed5', '', '' }}

Output

{{ content.fields.body.value }} <value stored in Impulse under key 'people/primary_content::bltbb88f007c5115ed5/title'>

Last updated