Content Layout Depending on List
Output a different layout depending on what a user has selected in a list.
If we assume the user can only choose a single item in the list (e.g. they're not using a Multi-select list or a Checkbox) then we can use the following:
{{#each (selected element="Select the layout to be output")}}
{{#eq value "text/layout-1"}}
{{embed layout="text/layout-1"}}
{{/eq}}
{{#eq value "text/layout-2")}}
{{embed layout="text/layout-2"}}
{{/eq}}
{{/each}}
Example 1
User selected the list item: Layout A with the value Layout A
This is the layout text/layout-1
Example 2
User selected the list item: Layout B with the value Layout B
This is the layout text/layout-2
UG Quicklinks
Quicklinks
PG Quicklinks