F
Filament6mo ago
Vp

sub navigation in custom page

I create filament page inside resource, and inside I display some list with table.. Now I want to use resource sub-navigation (https://filamentphp.com/docs/3.x/panels/resources/getting-started#resource-sub-navigation), the view, edit page are working fine, but in custom page the navigation cannot display.. How can I make the sub-navigation displaying (working) in custom page?
No description
No description
Solution:
GitHub
demo/app/Filament/Resources/Blog/PostResource/Pages/ManagePostComme...
Source code for the demo.filamentphp.com website. Contribute to filamentphp/demo development by creating an account on GitHub.
Jump to solution
2 Replies
Vp
Vp6mo ago
I tried the exact same thing in Resource page but it's not working in custom page
public static function getRecordSubNavigation(Page $page): array
{
return $page->generateNavigationItems([
Pages\ViewList::class,
Pages\EditList::class,
Pages\Result::class,
]);
}
public static function getRecordSubNavigation(Page $page): array
{
return $page->generateNavigationItems([
Pages\ViewList::class,
Pages\EditList::class,
Pages\Result::class,
]);
}
Solution
Vp
Vp6mo ago
GitHub
demo/app/Filament/Resources/Blog/PostResource/Pages/ManagePostComme...
Source code for the demo.filamentphp.com website. Contribute to filamentphp/demo development by creating an account on GitHub.