Comments 2Kyle started the conversationApril 7, 2017 at 4:02pmFor 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 2Kyle repliedApril 11, 2017 at 5:20pmOkay, 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 Sign in to reply ...
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.
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";