Frumph / comic-easel

Comic Easel is a plugin for WordPress that let's you have a WebComic with any WordPress theme.
http://comiceasel.com
21 stars 13 forks source link

Chapters drop-down hierarchy fix, orderby options #22

Closed kmhcreative closed 8 years ago

kmhcreative commented 8 years ago
  1. (Front-end) Fixed Chapters drop-down list so it indents children showing hierarchy. Was showing as a flat list, making it impossible to see which chapters were children or parents. The "render_as_list" option was already doing this correctly.
  2. (Back-end) Added radio button options to order list by:
    • "menu_order" (current method, and default)
    • "tax_name"
    • "ID"

The "tax_name" sorts ASC and then alphabetically by chapter name (this was the only option that displayed chapters in my intended hierarchical order of Volume->Story->Chapter).

The "ID" option theoretically should sort oldest to newest, since earlier chapter IDs will be lower than ones created later, assuming you didn't create the older chapters after newer ones.

Frumph commented 8 years ago

Reminder: need to edit injections.php with the new parameter for this function https://github.com/Frumph/comic-easel/blob/master/functions/injections.php#L151

Frumph commented 8 years ago

merge removed temporarily - on accident, didn't pull when pushed ;/ i'll fix it up soon as I finish the next filter which will be today/tomorrow