ZenphotoCMS Forum
"Sort images by" for all subalbums too, please. - 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: "Sort images by" for all subalbums too, please. (/thread-1852.html)



"Sort images by" for all subalbums too, please. - ulfben - 2007-11-25

Since updating to 1.1.2 my previously sorted albums are now a mess. I don't have the patience to manually set the sort order in each of my 250+ subalbums, so I would like to suggest the simple addition of a tickbox for "apply changes to this album and all it's subalbums". Pretty please.




"Sort images by" for all subalbums too, please. - sbillard - 2007-11-26

Upgrade to the nightly build and your wish will come true. http://www.zenphoto.org/files/nightly/

Set the sort order for your gallery to what you want. Each subalbum that has not had its sort order actually set will inherit this setting.

More specifically: all albums will initially inherit their sort order settings from their parent. In the case of first level albums, the parent is the gallery. So, if you have never set the sort options for an album, it will inherit them from its parent.




"Sort images by" for all subalbums too, please. - ulfben - 2007-11-26

Updated to nightly, but no dice. Is the "inheritance" perhaps limited in depth or somesuch?

If you can tell me where this behaviour is implemented I'll try and patch it myself.




"Sort images by" for all subalbums too, please. - tummblr - 2007-11-26

I believe you must manually sort existing albums and subalbums. New uploaded/imported albums and subalbums in the future will be sorted automatically.
http://www.zenphoto.org/support/topic.php?id=1721&replies=13#post-11314




"Sort images by" for all subalbums too, please. - sbillard - 2007-11-26

The sort parameters are stored in the album table of the database. You can change them there.

The intheritance is not limited. However, it does not override any previously set parameters.

Steps to follow:

  1. Set the gallery sort options as you wish for the default. This is done in the admin options gallery tab.
  2. Drop the sort_type and subalbum_sort_type fields.
  3. Run upgrade.php
  4. Run the Pre-Cache Images script from the admin page.



"Sort images by" for all subalbums too, please. - ulfben - 2007-11-27

Yep, that did it! Thanks a bunch.