php - How to filter BoltCM setcontent by releated ContentTypes? -
now can do: {% setcontent books = 'books' {price: '<30.00'} %}
but how can fetch books filtered author in scenario books , authors 2 contenttypes , authors relation books (instead of having authors id foreign on books)?
something pseudo: {% setcontent books = 'books' {related: {authors: author}} %}
(author
current record on template). or taxonomies: https://docs.bolt.cm/content-fetching#using-taxonomies
instead of querying 'books' , somehow filtering on having realtion, should other way around: know 'author', , can use related records, using {{ author.related() }}
.
Comments
Post a Comment