I have created the routes and the patFor to be able to reach mysite.com/post/id but instead of opening it in a new page I want this to be opened inside a modal and can't find how to do it with meteor and flow-router
The current way I link to the postId page is with the meteor add arillo:flow-router-helpers package:
<a href="{{pathFor '/post/:id' id=_id}}">Link to post</a>
but this will take me to my singlePost blaze template...I want that template to be opened in a modal instead of being a new page...so I changed that to :
<template name="spotPage">
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
{{#if Template.subscriptionsReady}}
{{#with thisPost}}
<li>{{title}}</li>
<li>{{country}}</li>
{{/with}}
{{else}}
<p>Loading...</p>
{{/if}}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</template>
but how do I toggle that specific post._id with the modal and its data context?
thanks