Is there a way to define default values in set_list?
Basically, I want to set 3 variable to:
{stash:var_run_here}no{/stash:var_run_here}
{stash:var_type}none{/stash:var_type}
{stash:var_title}{url_title}{/stash:var_title}
Then overwrite them, depending on a playa value or checkbox values further in the set_list grouping. Something like:
{if is_global == 'y'}
{stash:var_run_here}global{/stash:var_run_here}
{if:else}
{run_on_these_pages}
{exp:switchee variable = "{url_title}" parse="inward"}
{case value="{segment_2}"}
{stash:var_run_here}yep{/stash:var_run_here}
{/case}
{/exp:switchee}
{/run_on_these_pages}
{/if}
{exclude_from_these_sections}
{exp:switchee variable = "{option_name}" parse="inward"}
{case value="{url_title}"}
{stash:var_run_here}yep{/stash:var_run_here}
{/case}
{/exp:switchee}
{/exclude_from_these_sections}
So that this is the get_list part:
{exp:stash:get_list name="fma_list" parse_conditionals="yes" unique="yes" process="end" orderby="var_type" sort="asc" limit="999"}
Title: {var_title}<br>
Run On This Page: {var_run_here}<br>
Type: {var_type}<br>
{/exp:stash:get_list}
{exp:channel:entries}
tag is included in your code?