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.3 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.