Rendering breadcrumbs in the topbar #11734
Unanswered
markdynamo6
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Other
Package Version
v3.2
How can we help you?
What is the recommended way of getting the breadcrumbs in the topbar? I have tried rendering a view into the GLOBAL_SEARCH_BEFORE hook, but
$this
is out of context. Is there a way to access the Page object at hook time so that I can callgetBreadcrumbs()
?UPDATE:
I managed to get this working with:
But then ran into following error on my edit pages: Typed property Filament\Resources\Pages\EditRecord::$record must not be accessed before initialization.
This in turn was mitigated by overriding the getBreadcrumbs method in the offending EditRecord page and manually mounting the controller:
Which seems very hacky. Please advise.
Beta Was this translation helpful? Give feedback.
All reactions