Cluster with EditResource form, and other custom pages that interact with a specific resource
I'm wondering if it is possible to create a Cluster which will only be displayed when you are on the edit page for a resource, to show other custom pages that act on a specific resource.
For example, I have a
LandmarkResource
, and when I visit the EditLandmark
page I would have the cluster navigation to access another custom Page that was created managing resource data, for example Images related to the landmark.
Cluster would have the following links/pages:
- landmarks/<id>/edit
- landmarks/<id>/media
- landmarks/<id>/...
- and so on for other custom pages for data related to a single resource
I haven't been able to get the EditLandmark
page to appear in a cluster by setting the protected static ?string $cluster = ...
property. Nor the Custom Resource page for managing the Media, as per the example.
I feel like it should be possible since they extend the Page
component, however maybe clusters don't work with <resource>/<id>
pages.Solution:Jump to solution
Hi guys, look at the thread:
https://github.com/filamentphp/filament/discussions/13029
FYI @Jon Mason @mark.cameron...
GitHub
How to show Cluster navigation in EditRecord and CreateRecord pages...
Package Panel builder Package Version v3.2.85 How can we help you? Hi. Is posible to show cluser navigation in EditRecord and CreateRecord pages as showing in image? List Page Edit page Thanks
5 Replies
This is exactly what I'm trying to achieve. Tried a few things but couldn't get it to work with clusters. Were you able to figure it out?
My issue is that I need to pass in the ID and in a normal mount() method I would do this, but the cluster's mount method won't accept any parameters.
@Jon Mason Unfortunately I still have not figured this out. Yourself?
Yeah, I gave up on it, sadly.
Solution
Hi guys, look at the thread:
https://github.com/filamentphp/filament/discussions/13029
FYI @Jon Mason @mark.cameron
GitHub
How to show Cluster navigation in EditRecord and CreateRecord pages...
Package Panel builder Package Version v3.2.85 How can we help you? Hi. Is posible to show cluser navigation in EditRecord and CreateRecord pages as showing in image? List Page Edit page Thanks
@Joao Gomes Thanks for this!