Meteor data context with collectionFS -
i want fave.title within collectionfs each block have "title here", ideas?
<template name="myfaves"> <div class="container"> <div class="page-header"> <h2>your favourites</h2> </div> <div class="row"> <div class="col-md-12"> {{#each faves}} {{> singlefave }} {{/each}} </div> </div> </div> </template> <template name="singlefave"> <div class="row"> <div class="col-md-12"> <div id="freewall" class="freewall"> {{#each getmedia this.fileid}} {{#if isimage store='thumb'}} <div class="brick"> <img src="{{this.url store='thumb'}}" width="100%"> <div class="info"> title here </div> </div> {{/if}} {{/each}} </div> </div> </div> </template>
i guess need access parent context. try {{../fave.title}} or {{fave.title ..}}.
note grand-parent context reached using {{../.. fave.title}}
Comments
Post a Comment