Cluster sub-navigation not showing
Hi everyone! I added a new cluster with some resources inside, but I'm not seeing the side navigation appear. I'm pretty sure I must be missing something. Does anyone know what I might be doing wrong?
This is the Cluster:
This is a Resource within the Cluster:
Appreciate your help!
7 Replies
Have you put your
discoverClusters()
into your panel provider ?yes! I have this:
->discoverClusters(in: app_path('Filament/Clusters'), for: 'App\Filament\Clusters')
Try:
->discoverClusters(in: app_path('Filament/Clusters'), for: 'App\Filament\Clusters')
yeah that is exactly what I have π€. You meant the double backslash? I do have it like that but looks like Discord removes it on paste. Actually if I remove that line I dont get the main item on the navigation, and if I added i get the main item but not the sub-navigation so I guess that part might be working
What are you expecting by
sub-navigation
? (yep meant double backslash, maybe code block will show it: ->discoverClusters(in: app_path('Filament/Clusters'), for: 'App\\Filament\\Clusters')
Sorry just saw this reply! but by sub-navigation I meant what's described in the
Clusters
section of the docs
When using a cluster, a few things happen: A new navigation item is added to the navigation, which is a link to the first resource or page in the cluster. The individual navigation items for the resources or pages are no longer visible in the main navigation. A new sub-navigation UI is added to each resource or page in the cluster, which contains the navigation items for the resources or pages in the cluster. ....Similar to the one Filament has in their Demo page. And yes!! I have it with the double backslash in my code but still no luck π’
Ummm....unless you haven't put all the resources into the cluster folder structure...then I can't see why the sub navigation headings wouldn't show.