mbanting / metalsmith-prismic

A Metalsmith.io plugin to pull in content from Prismic.io
MIT License
48 stars 19 forks source link

Similar content query #35

Closed doublejosh closed 6 years ago

doublejosh commented 6 years ago

Is there any known way to query for similar content when using collection: true (to create many pages from a query). Is it possible to end up with similar content details within the page details passed to a layout template?

https://prismic.io/docs/rest-api/query-the-api/predicates-reference#60_0-similar

I'm inclined to ask if you can use the data from one query in another (within the /src folder)... or do some kind of sub-query. Perhaps you'd need to run a query within a partial and pass in the id?

doublejosh commented 6 years ago

This is pretty much a support ticket. Hopefully it can be a place for some documentation.