1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Able to sort Album names during upload?

Discussion in 'Media Gallery Support' started by Kevin, Jul 10, 2015.

  1. Kevin

    Kevin Well-Known Member

    I know there are a bunch of threads related sorting the media items during an upload -- this is not my question. :)

    What I'm after would be being able to sort the list of Album names in the drop-down down during an upload? We're ending up with some duplicate named albums and I think part of it is because user's not easily seeing that an album already exists that they are able to upload to so they just go ahead and create new one.
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    They are ordered by the number of media items. There's no direct way of changing that. Besides not having any preset "orders" we acknowledge in the code that would order by title, the only other way of changing the order would be a code edit.

    If you wanted to order them by the create date, you would need to open library/XenGallery/ControllerPublic/Album.php

    Find:
    PHP:
    'order' => 'media_count'
    Replace with:
    PHP:
    'order' => 'album_create_date'
    Whether or not that would help, I'm not sure. Perhaps not.

    The only other solution would be some custom code to handle sorting alphabetically.
     

Share This Page