How can I create a breadcrumb for each search result?
The KirbyCMS site for example is using this for their Docs search.
What I know is, that the breadcrumb() function is only available on the $site object.
Thanks for your help.
Thereβs a page method called parents:
$page->parents()
It will return a collection of all parent pages and is ideal to build a breadcrumb. The $site->breadcrumb() method is using that as well.
2 Likes
Thank you very much. That was both very helpful!