How to change the order of navigation group sub-items
Is it possible to change the order of sub-items of a navigation group? i'd like to move some sub-items position
11 Replies
it is possible, why not?
despite being in a group you can sort the items by defining
@Bruno Pereira i tried that, but its changing the group order not the order of that group sub-item linked to a resource/page
try defining the order of the group in the panel, like this:
and keep the sort param in the pages
oky will try
@Bruno Pereira doesn't seems to be working, the
->navigationGroups([
'Shop', change to correct order
'Blog',
'Settings',
])
works, changes the order, but when i try to change a sub-item order in a group it still seems to be using alphabetic ordering
can you show your sub-item code?
i've just added
protected static ?int $navigationSort = 1;
in my TeamUserResource, which is assigned to Admin group with protected static ?string $navigationGroup = 'Admin';
but the position of TeamUsers still shows last in the group sub-items
and every sub-item of the group has the $navigationSort defined?
TeamUserResource itself is a sub-item of the group
hmm maybe this way doesnt work, you can try this https://discord.com/channels/883083792112300104/1154445824571474012 way
my bad seems it works, was just because some of my other resources didnt had all $navigationSort set