Sidebar: sort items and groups
Currently, I found how to order the groups and items inside a group but not how to sort groups and items. Is it possible to sort the items like in the image?
14 Replies
Currently, all items are sorted before groups. The simple solution is to have all items in groups.
I have a specific design where I need to have the navigation items in specific order. Till now I don't see any solution how to sort them like in the screenshot
Are you getting this instead?
I need them in this order:
Dashboard
Blog
Posts
Customers
Users
Shop
Products
Settings
Ok, so this is what I was saying above, you can't do this currently. Items that are not in groups will show at the top, before all groups.
Is any way to change the order with js on frontend
I'm not sure
You can register custom navigation, check here https://filamentphp.com/docs/3.x/panels/navigation#registering-custom-navigation-items-1
Even if you register custom navigation you can't sort navigation items and navigation groups between them.
Thanks a lot
@Esi Is this still not possible without placing the single item in its own group?
I know it seems complicated but would it be possible to create several navigation on the left and order it that way. Not the best of options.
yeah go to the resource and add \