Okay
  Public Ticket #1127170
Categories for gallery items
Closed

Comments

  •  2
    Kyle started the conversation

    For the list of categories in the Items tab of a gallery when editing, is there a way for those list of categories to be displayed in alphabetical order rather than just in the order they were created?


    Thanks.

  •   Max replied privately
  •  2
    Kyle replied

    Okay, I went ahead and edited it in the plugin. I would recommend implementing these changes to make the items/categories list more readable:

    1) Remove the nowrap from the list items in unitegallery_manager.css, so you would change this:

    .list_cats li span {
        display: block;
        padding-left: 6px;
        padding-top: 2px
        white-space: nowrap;
        overflow: hidden;
    }

    To this

    .list_cats li span {
        display: block;
        padding-left: 6px;
        padding-top: 2px;
        overflow: hidden;
    }

    And then make it so the categories list is in alphabetical by changing the line below in unitegallery_categories_class.php from this:

    $query .= " left join $tableItems as items on items.catid=cats.id GROUP BY cats.id order by cats.ordering";

    To this:

    $query .= " left join $tableItems as items on items.catid=cats.id GROUP BY cats.id order by cats.title";



  •   Max replied privately