Discussions

Ask a Question
Back to All

How to user AdditionalData within Each Loop

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

Admin

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

ο»Ώ