How to sort navigation items within a navigation group?

If I put a resource in a $navigationGroup, the
protected static ?int $navigationSort
protected static ?int $navigationSort
variable doesn't seem to change the sorting within the group. Is there any other way to manipulate the order in the group?
2 Replies
Azad Furkan ŞAKAR
You can define Navigation Groups in panel provider. https://filamentphp.com/docs/3.x/panels/navigation#customizing-navigation-groups or https://filamentphp.com/docs/3.x/panels/navigation#ordering-navigation-groups The order of the array elements here directly generates the navigation order. Then you can order items in group with $navigationSort in pages or resources.
czehnter
czehnterOP2w ago
Thanks, $navigationSort actually does work within navigation groups as well. I was thrown off by the sorting of a third-party plugin page.

Did you find this page helpful?