F
Filament15mo 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
Patrick Boivin15mo ago
Currently, all items are sorted before groups. The simple solution is to have all items in groups.
Esi
EsiOP15mo 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
Patrick Boivin15mo ago
Are you getting this instead?
Dashboard

Blog
Settings

Shop
Menu items
Dashboard

Blog
Settings

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