is there a way - possibly with php - to 'build' a field tag from a 'variable'?
i currently have this:
{exp:stash:get_list name="rf_columns" prefix="rf"}{!--
--}{if rf:col_value == 'f_admin_notes'}{f_admin_notes}{/if}{!--
--}{if rf:col_value == 'f_hname1'}{f_hname1}{/if}{!--
--}{if rf:col_value == 'f_fname1'}{f_fname1}{/if}{!--
--}{if rf:col_value == 'f_mname1'}{f_mname1}{/if}{!--
--}{if rf:col_value == 'f_lname1'}{f_lname1}{/if}{!--
--}{if rf:col_value == 'f_notes'}{f_notes}{/if}{!--
--}{if rf:col_value == 'f_organisation'}{f_organisation}{/if}{!--
--}{if rf:col_value == 'entry_id'}{entry_id}{/if}{!--
--}{if rf:col_value == 'count'}{count}{/if}{!--
--}...
{/exp:stash:get_list}
obviously this is quite cumbersome, I'm hoping to have something like:
{<?php echo 'rf:col_value'; ?>}
i've tried this, but i don't think im doing it right
just to explain, i have a grid field where the user can select the data they would like displayed, i then use that to output the data of the corresponding field
my channel ("reports") grid has a dropdown to select a field name as a value and not the field related, so it's value is just the text "f_field_name", i'm then using that value inside the entries tag for "contacts" to output the actual field value:
{if rf:col_value == 'f_field_name'}{f_field_name}{/if}
instead i'm hoping to be able to 'build' the field tag, e.g.
{{rf:col_value}}
(output the value "f_field_name" then parse the outer curly braces to output the actual value of "{f_field_name}")