![]() |
|
Categories Sorting - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Categories Sorting (/thread-13569.html) Pages:
1
2
|
Categories Sorting - Ralf - 2021-04-25 Hi, I have the following categories for examples:
Now when adding a new category and move it into a existing category (for example Graphics) i end with "scrambled" categories. RAW Converter and Technics are now sub-categories of news - for example. Re-Sorting and applying does not solve the problem - nor does manually editing the sort order in the news_categories table fix the problem. Ralf Categories Sorting - fretzl - 2021-04-25 I cannot reproduce it. Any errors? Any specific settings? Categories Sorting - acrylian - 2021-04-25 I also cannot reproduce this. Look for error not only in the debug log/PHP error log but also your brower's console. Also which browser are you using? Categories Sorting - Ralf - 2021-04-25 Strange, because in the database table the sorting looks ok. But in the backend (and frontend of course) it is displayed wrong. Categories Sorting - acrylian - 2021-04-25 On the backend it could have been a JS error with the nested sorting. But the frontend does use any of that. Also try force clearing your browser cache. This can play all sorts of tricks as it is so persistent nowadys (not sure why it would here…) Categories Sorting - acrylian - 2021-04-25 Does sorting of albums and pages work for you? That all uses the same base principle… To my memory there has been no change in this area from 1.5.7. Categories Sorting - Ralf - 2021-04-25 Sorting of albums and pages are working ok. Categories Sorting - acrylian - 2021-04-25 If that is a general problem it should also happen with pages… YOu did check the database sortorder values. They really were incorrect? Just to rule out a plain display issue. Also again, what browser (+ version + system) please ? Categories Sorting - Ralf - 2021-04-25 The database sort order looks fine. Only the display is wrong. Categories Sorting - acrylian - 2021-04-25 Just tried with Firefox 88 and Chrome 90 and sadly all works as expected for me… Categories Sorting - Ralf - 2021-04-25 Here is what happens: Example: This will display 'Wordpress' as a sub-category of 'CMS'' which is right. Categories Sorting - Ralf - 2021-04-25 One additional thing I have noticed: Creating a new category has the sort-order NULL in the database table. Categories Sorting - acrylian - 2021-04-25 That is weird. Because 001-000 is the correct sortorder for the first child of the 2nd entry… Did you try reploading the page several times without applying? Just to rule out any browser page cache doing unwanted things. I've seen it cause a lot unecessary trouble… That is correct actually. Before you save on the list a new item technicaly has no order. Categories Sorting - Ralf - 2021-04-25 Yes I reloaded the page multiple times - after deleting browser cache. Categories Sorting - acrylian - 2021-04-25 Unless we find a save way to reproduce this we can't do much sadly… Categories Sorting - Ralf - 2021-04-25 What I found out: I Categories Sorting - fretzl - 2021-04-26 Thanks for the specifics. I can confirm this happening starting with category 17 but only one time. As soon as I delete and add some more categories the sort order is correct again. However every new category indeed gets sortorder NULL after saving. Categories Sorting - Ralf - 2021-04-26 Hi Fretzl, and thanks for the tipp with the deleting and adding categories again. This will solve my problem with adding more categories. Ralf Categories Sorting - acrylian - 2021-04-26 Sadly I can also reproduce this with 17 categories.Null is the default value of the database field. Perhaps we can workaround by setting it to an explicit 000 value on creating new items. In any case this issue should really also happen with all other nested sorting like page as they all use the same principle. Categories Sorting - acrylian - 2021-04-26 1.5.8RC now has a change that should fix this. New items now get the next toplevel sortorder on creation so they are correctly at the end of the list. |