-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sortable Pages stop working now [Grav v1.3.0 / Admin v1.5.0] #1574
Comments
Noticed that the folder numeric prefix is still working. means changing the order in page editor will rename the folders, but Grav can't show them as expected. both on frontend and backend |
I am also seeing this behaviour after updating to Grav v1.3.0/Admin v1.5.0. I think I can see the problem, see this PR for my proposed fix. Although admittedly, I have a fairly rudimentary understanding of the codebase so people can let me know if I've missed something! |
Second this, page ordering was working with rc05, newest Admin seems to break it, have tried clearing cache and going again but not working. |
@timrobbings It works, Great! |
merged, will release later tonight or tomorrow |
@rhukster wait, seems still has problem, the fix doesn't work after touching the page in editor again. |
if you can provide a PR with a fix that would be appreciated. I don't have any access right now to a linux system that exhibits this behavior. |
I am having some difficulty reproducing the issue but I am happy to have another look later if you can provide more info on the exact sequence of steps you are taking. |
Can confirm this, sadly the fix proposed in #1575 doesn't have any effect. I also tried upgrading to core 1.3.0 alone, thus without updating the admin plugin. Still had the same problem though.
Edit: Ok, editing the date of creation didn't really change anything. However, I still don't get why the pages I created last are always sorted last. |
Uhm.. I tried replicating on 2 different setups (osx and linux) but I cannot recreate the issue. |
I'm on macOS as well, using the most recent version of MAMP (MAMP 4.11, Apache, PHP 7.11). Maybe it's also important, that I'm using a internationalized project as that seems to affect sorting as well. |
I made a clean reinstall using MAMP with all default configs, then the patch, seems not work at all, |
I've just had another look at this. I'm using Ubuntu, PHP 7.0.18 and Apache. So far I've tried inserting unusual characters (accented, hieroglyphic, etc...) and tried removing leading zeros from folder names, but I'm still not having much success. @ash0080 / @zhedar - what are the folder names (as displayed if you list the content of the directory)? Could you paste the names so that I can copy them and have another go? |
How does grav determine the order of the pages if not in alphabetical order? |
My understanding is that this is intentional behaviour - looking at the code, it appears manually ordered items are inserted before those with other ordering criteria. I think this is right but perhaps someone could confirm? |
@timrobbings |
@zhedar - what do your folder paths look like? I.e. what is the output if you cd into one of the incorrectly sorted folders and run 'pwd'. |
@timrobbings Here's a full overview of all my folder names and the first level's contents (I've got 2 levels of modular pages):
It seems like any special characters – like |
Also just tried to deactivate all i18n features and remove some of the |
Thanks @zhedar. FWIW, I am seeing problems with subfolders - which may be related although I'm not sure if it is the same as the one you describe. I'll summarise here. Specifically, when you have the following structure:
If you configure the Whereas, if you view the Perhaps suggesting that sort order is not conveyed or applied correctly when pulling collections from sibling directory trees. |
Sorry, I feel a bit foolish right now. As I wrote I incorporated the fix from #1575, but I just looked into that file's history and saw that #1571 made another important change, which I didn't seem to have as I didn't add another git remote just for a single character change. Somehow this one wasn't referenced here yet, although I read about it in a comment at the blog post. After adding these two changes sorting works as before 1.3 again. Will do some tests. |
No problem, appreciate the help 👍 I think I've tracked down a potential issue relating to sorting as mentioned above, which probably isn't helping matters (although this appears to have been a problem < 1.3.0) - I will also try and do some more testing and may raise a separate ticket to avoid conflating multiple issues. |
Can you confirm the latest |
Yes, confirmed fixed for me, I think I tried to confirm this via Slack too, perhaps not the right way, sorry!
thanks
Matt
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
modern activity, Buzzer #3, 19 Warburton Road, London E8 3RT
T: +44 (0)208 985 6756 / M: +44 (0)7941 806 766
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
… On 19 Jul 2017, at 13:44, Flavio Copes ***@***.***> wrote:
Can you confirm the latest develop has solved the problem for you? I still cannot replicate it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#1574 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AGAQnqt6mYW8hbmb42L2yfScN49HUYh_ks5sPfoZgaJpZM4OaXfe>.
|
Fixed in 1.3.1 🚢 |
Can not save the order
The text was updated successfully, but these errors were encountered: