I am using stash to store some common site data and would like to use a grid field to store one of the fields with the user having the option to input 0-4 rows. Is there a way to do this with stash?
So if I was stashing the variables is there anything I use like the switch statement with stash?
Something like:
{grid_field}
{exp:stash:row_{switch='1|2|3|4'}_col_1}{grid_field:col_1}{/exp:stash:row_{switch='1|2|3|4'}_col_1}
{exp:stash:row_{switch='1|2|3|4'}_col_2}{grid_field:col_2}{/exp:stash:row_{switch='1|2|3|4'}_col_2}
{/grid_field}