alethes / meteor-pages

Meteor pagination
MIT License
403 stars 84 forks source link

accessing parent Data context #230

Open abate opened 6 years ago

abate commented 6 years ago

I'm using pages to create a form, where I can select one of multiple rows. the data context of a raw (itemTemplate) at the moment is just the data from a single record from the collection I'm paginating. This is ok in general, but sometimes I need to access the data context of the parent template (templateName) . I could climb the blaze hierarchy, but this is super cumbersome and at the moment I'm using a session variable to get this information. I feel this is super hacky . Is there a way to pass the parent data context to each item, so to have an easy access to it ?