I am trying to pass parameters into a data request
e.g.
parameter is ccy=nzd
Voxel pulls the info in using @site().query_var(ccy)
Is there a way I can replace @post(nzd).number_format(4) with @post(@site().query_var(ccy)).number_format(4)
And include it in calculations, like the ones below:
GBP £@site().query_var(amt_ccy).math(@site().query_var(amt_ccy) / @post(nzd)).number_format(2)
Can be replaced with something like….
GBP £@site().query_var(amt_ccy).math(@site().query_var(amt_ccy) / @post(@site().query_var(ccy))).number_format(2)
@site().query_var(amt_gbp).math(@site().query_var(amt_gbp) * @post(@site().query_var(ccy))).number_format(2)
Otherwise, I will have to create a preview template for each currency?
©2025 Created with 27collective LLC. All rights reserved