Implement a Cluster with a Custom Page for a Specific Model
Hey everyone! 
I'm working on a project where I need to set up a Cluster for a specific model (let's call it
My Questions:
What Iโve Tried:
Thanks in advance!
I'm working on a project where I need to set up a Cluster for a specific model (let's call it
Project), and I'm a bit unsure about the right way to structure the routes for a nested page.
Context:
- I have a
Projectmodel, and each project is accessible via a slug (e.g./my-cool-project). - I want to create a Cluster around this model so that each project acts like a cluster root.
- Inside this cluster, I need a custom page called
settings, so that the full path looks like:
- Should this path (
{project-slug}/settings) be registered viaroutes.php, or should it be part of thediscoverClustersetup? - How do I properly link this custom page to the cluster so it respects the project context (e.g., fetching the correct project based on slug)?
- Are there any best practices for structuring custom cluster pages like
settingsunder a model-driven path like this? - If I want to include additional pages in the future like
/edit,/analytics, etc., should those also live under the same cluster or be managed differently?
- I looked into
discoverClusterusage but it seems limited in terms of defining nested pages. - Attempted adding it directly to the
routesconfig, but it doesn't seem to automatically respect the model context unless I manually fetch theProjectby slug.