Twig Components / Methods / related_content_by_type
related_content_by_type(content, direction = "both", limit = null, publishedOnly = true) is a Twig filter to return a two-dimensional
array of related records, grouped by the contenttype.
[ 'entries' => [ related_entry_1, related_entry_2, ... ], 'pages' => [ related_page_1, related_page_2, ... ] ]
|content||The related content's name or contenttype. If not set, it will fetch all related records.|
|direction||Limit relations to a direction. Default is "both"; see Relations and directions for more info.|
|limit||Limits the number of related records that are returned.|
|publishedOnly||Return only related records that are published. Default is true|