F
Filament8mo ago
Groli

Adding navigation inside cluster to CreateRecord page

I want to add navigation (as is in ListRecords page) to CreateRecord page, is it possible?
Solution:
add this in the CreatePage ```php public function getSubNavigation(): array {...
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira8mo ago
add this in the CreatePage
public function getSubNavigation(): array
{
if (filled($cluster = static::getCluster())) {
return $this->generateNavigationItems($cluster::getClusteredComponents());
}

return [];
}
public function getSubNavigation(): array
{
if (filled($cluster = static::getCluster())) {
return $this->generateNavigationItems($cluster::getClusteredComponents());
}

return [];
}
Groli
GroliOP8mo ago
thanks

Did you find this page helpful?