getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.27k stars 167 forks source link

Sorting doesn't work as expected if some pages have fixed nums #6595

Open tobimori opened 1 month ago

tobimori commented 1 month ago

Description

I want a specific page template to have num: 0 (and stay at the start). All other templates should be sortable as usual.

https://github.com/user-attachments/assets/b2498951-17fd-479e-a4b2-dbe6f23b3168

Expected behavior
I'd not be able to sort the page with fixed num and when sorting other pages, they shouldn't jump when let go but stay at their expected position.

This can be partly treated as enhancement, however I'm still adding this as an issue. In my opinion, sorting should rather be disabled than allowing this buggy behaviour to avoid confusion.

Your setup

Kirby Version 4.3

distantnative commented 1 month ago

@tobimori Are for you the following parts the same:

tobimori commented 1 month ago

With card, list and cardlets layout, I can also not drag any other (sortable) page above the num: 0 page (as one would want/expect)

I can drag them above it, and then they jump to the second position (as seen in the video).

distantnative commented 1 month ago

@tobimori but the video is in table layout

tobimori commented 1 month ago

Sorry, my mistake 🤦 I haven't tested other layouts.

distantnative commented 1 month ago

Would be great if you could, just to be sure that we've narrowed down the extend of the issue correctly.

distantnative commented 4 weeks ago

@tobimori or please test if this is solved for your case with 4.4.0-rc.1

tobimori commented 2 weeks ago

I have this issue on 4.4.0-rc.1 now with the list layout as well.

distantnative commented 2 weeks ago

@tobimori could you please share your blueprint? Thanks!

tobimori commented 2 weeks ago

What do you need exactly? This was in a different project with the same pattern (num: 0) on one blueprint type only. I can also share the whole project privately if that helps.

distantnative commented 1 week ago

That would help as well. Currently, I cannot reproduce that this would happen in the list layout now, neither in the table layout anymore.

Setup: