![]() |
|
Custom Sort 1.6? - 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: Custom Sort 1.6? (/thread-12670.html) |
Custom Sort 1.6? - tplowe56 - 13-12-2022 Is custom sort missing in 1.6? It is in the description but not in the dropdown. In 1.5x I used custom sort using the sub-location field, I have Lightroom writing a sequencing number to this field. Mine defaulted to manual after installing 1.6 Custom Sort 1.6? - acrylian - 13-12-2022 From the backend the interface it has indeed been removed, please see the release post section "General changes and fixes", around the middle why we did that and what you can do instead. It however requires some coding. Custom Sort 1.6? - tplowe56 - 13-12-2022 Hmmmm... I have over 300 albums using "iptcsublocation" as a custom sort. They are fine now but I would like to fix this as it is part of my work flow. Can you give me some instructions on how to code this? A search of the forum for "admin_sortbyoptions" yields zero. Custom Sort 1.6? - acrylian - 14-12-2022 Actually it was meant that existing custom sort orders keep working, just no interface for setting new ones. At least that worked in our tests when we changed that… Ist that the case? You will have to create a - actually rather simple - plugin to extend the fields list to sort by (the filter is new in 1.6 so you cannot find anything for it, we also have still to update our filter documentation). I will try to create a demo plugin for this - it's actually rather simple - but that may take some time. Custom Sort 1.6? - tplowe56 - 14-12-2022 Yes you are correct, images are still sorting according to "iptcsublocation", apparently due to restoring the DB. The image sort after upgrading to 1.6 is "Custom (webp)". If I change that option to manual and apply, the custom option disappears, unless I restore the DB. So the sort method appears to be persistent in the DB. But once changed it will be lost. Custom Sort 1.6? - acrylian - 14-12-2022 Hm, actually we try to keep already existing sortorder for albums to be kept. "webp" is a weird order of course… I don't remember that we set any default…
Yes, it disappears as soon as you change to anything else. It is only meant as a fallback. "Manual" of course means ordering via drag&drop sorting and not by any specific db column. (Mention it just in case…) You basically need a simple admin type plugin that does this (I have not tested if this works via a functions.php of a theme):
Custom Sort 1.6? - tplowe56 - 27-12-2022 I've looked into writing the sort plugin but it appears to above my skill level. Is there anyone with some coding skills that would be willing to do this for a fee? Custom Sort 1.6? - acrylian - 28-12-2022 As mentioned above - I think - I can/will make a demo plugin, but may take some time. Holiday season "between they years" and such… Custom Sort 1.6? - tplowe56 - 28-12-2022 Thanks Acrylian, Happy Holidays! I will check back in 2023. Custom Sort 1.6? - acrylian - 03-01-2023 As promised you find here a simple plugin template for this: https://github.com/zenphoto/DevTools/blob/master/plugins/admin_custom_sortorder.php Please see the in-file comments how to modify. Custom Sort 1.6? - tplowe56 - 07-01-2023 Thanks so much Malte!! I missed seeing this till yesterday. I got it working fine. Just had to enter in my actual sort field. This works great for ZP users who use Lightroom, which can write a specific sequence to any EXIF or IPTC field using the LR/Transporter plugin from https://www.photographers-toolbox.com/. I chose IPTCSubLocation years ago bc it is a field that is rarely (if ever) written to by the camera. So this transfers my custom sort used in LR to my website very efficiently. Both local and live sites are sorted custom, & exactly the same automatically. Thanks for all your great work. Custom Sort 1.6? - tplowe56 - 30-04-2023 Will custom sort order be incorporated into 1.6xxx? Or will it be a plug-in? I am currently using this customized plug-in (below) from Malte on Github, but the latest development release does not contain the option in admin or as a plug-in. https://github.com/zenphoto/DevTools/blob/master/plugins/admin_custom_sortorder.php Custom Sort 1.6? - acrylian - 30-04-2023 There will be no option anymore for reasons discussed above and also no plugin. It must be set via code as with the helper plugin you referenced. Custom Sort 1.6? - tplowe56 - 30-04-2023 Ok thanks, that plug-in does the job. Custom Sort 1.6? - tplowe56 - 10-06-2025 https://github.com/zenphoto/DevTools/blob/master/plugins/admin_custom_sortorder.php Malte, you wrote this custom sort plug in a few years ago. It works on my local install but for some reason failed today on my live version. Both are running 1.6.6a. I can upgrade but have been holding off. Should this version be working fine with 1.6.6a forward or do i need to make some modifications? The sort using the plugin is not using chosen field **Tried on 1.6.8 cannot get to work. Custom Sort 1.6? - acrylian - 10-06-2025 I have not tried it since but I would have expected it still tot work. O am not aware of any changes affecting it. But given the complexity of ZP that never can be ruled out. Any log entries? Custom Sort 1.6? - tplowe56 - 10-06-2025 I got it to work.....a configuration setting was off. All good. Custom Sort 1.6? - acrylian - 10-06-2025 All right! |