Edit on GitHub
Jump to docs navigation

Twig Components / Methods / related_first

related_first(name = null, publishedOnly = true) is a Twig filter to return the first of the returned related records.

Parameter Description
name The related content's name or contenttype. If not set, it will fetch all related records.
bidirectional Performs bidirectional search. Default is true
publishedOnly Return only related records that are published. Default is true


Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.