"Sort images by" for all subalbums too, please.

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. :)

Comments

  • 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.
  • 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.
  • 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
  • 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.
  • Yep, that did it! Thanks a bunch.
Sign In or Register to comment.