I’m successfully accessing a pageData.payload array using handlebars and the each helper.
But on that same page I want to show what’s in another non array variable pageData.test , and I’m having some trouble.
tried using just {{ pageData.test }} gives me nothing
Hi @Lars_Andersson
If you are within the the {{#each}}
iterator, you have to use {{@root.pageData.foo}}
get back to the higher scope.
@root
is always available for you to use.
I know I can reach a specific pagedata value like this
{{@root.pageData.runtimes.items.1.fef_minutes}} while in a #each loop,
but if I want to use the @index or @key insted of the number .1. above, it doesn’t work.
Do I need to use triple brackets or something else I’m missing in the syntax?