0

我想在我有“TITLE HERE”fave.title的collectionFS块中获取任何想法?each

<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>
4

1 回答 1

0

我猜你需要访问父上下文。尝试使用{{../fave.title}}or {{fave.title ..}}

请注意,祖父母上下文也可以使用{{../.. fave.title}}

于 2015-07-08T12:00:40.647 回答