Discussions
How to user AdditionalData within Each Loop
over 7 years ago by Anil Thakkar
Hi,
I need {{#if AdditionalData.PageTitle.HeaderImage}} to be used for each items within {{#each Items}} block, but it's not working.
Please suggest a way.
Thanks,
Anil
over 7 years ago by Sacha TrauwaenAdmin
Hi,
To get access to a variable of parent context, prefix the variable with ../
Exemple : {{#if ../AdditionalData.PageTitle.HeaderImage}}
More info : http://handlebarsjs.com/#paths
ο»Ώ