F
Filament2y ago
Esi

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?
No description
14 Replies
Patrick Boivin
Currently, all items are sorted before groups. The simple solution is to have all items in groups.
Esi
EsiOP2y ago
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
Patrick Boivin
Are you getting this instead?
Dashboard

Blog
Settings

Shop
Menu items
Dashboard

Blog
Settings

Shop
Menu items
Esi
EsiOP2y ago
I need them in this order: Dashboard Blog Posts Customers Users Shop Products Settings
Patrick Boivin
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.
Esi
EsiOP2y ago
Is any way to change the order with js on frontend
Patrick Boivin
I'm not sure
Esi
EsiOP2y ago
Even if you register custom navigation you can't sort navigation items and navigation groups between them.
Esi
EsiOP2y ago
Thanks a lot
grafx7258
grafx725816mo ago
@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.
Ahmad
Ahmad16mo ago
yeah go to the resource and add
protected static ?string $recordTitleAttribute = "Name
";
protected static ?string $recordTitleAttribute = "Name
";
\

Did you find this page helpful?