Okay, wow, I’m not seeing something.
This seems to be such a simple thing to do:
Target
- I have two collections (lists & cards)
- I can create new lists and give a title to them
- I can create new cards and give a title to them
- I want to display some cards in list A, some cards in list B and some in list C
- To do this each card has a select field…
- …that (when changed) adds the title of the selected list to the corresponding card-document.
Based on this, can’t I somehow just do this in my list-templates?
<template name="list">
<div class="list">
<div class="list__title">{{title}}</div>
<ul class="list__content">
{{#each cards thatMatchTheListTitle}}
{{> card}}
{{/each}}
</ul>
</div>
</template>
Example:
It’s probably easier to look at it:
http://mb_baustellen.meteor.com/
Problem:
As you can see, the list-titles are attached correctly.
But in the lists all the cards are shown. I have no clue how to filter the {{#each}} based on the attached list-names.
Any help of push in the right direction?