Multisite-Language-Switcher icon indicating copy to clipboard operation
Multisite-Language-Switcher copied to clipboard

Make flag column sortable

Open lloc opened this issue 13 years ago • 8 comments

It would be helpful if the flag-columns in the backend are sortable. In this case we could understand where a translation is missing when there are a lot of elements.

lloc avatar Dec 08 '11 09:12 lloc

+1

orbitaloop avatar Aug 25 '12 01:08 orbitaloop

I guess it needs to separate each language to different column. Maybe better solution will be add filter so you'll be able to choose only posts or pages that are / or not translated?

speccode avatar Nov 27 '13 11:11 speccode

Yes this is probably a better solution.

lloc avatar Nov 27 '13 11:11 lloc

There will be small problem with creating such filter for taxonomies table. For posts I simply used restrict_manage_posts action, that is fired in extra_tablenav function for WP_Posts_List_Table. In taxonomies table class there is no such hook.

I guess we can use after-{$taxonomy}-table to add some JavaScript to inject HTML to form, then find way to hookup with taxonomy query. But that sounds more like "hack" not a solution.

speccode avatar Nov 29 '13 23:11 speccode

@lloc so what do you think I should do with this?

speccode avatar Dec 07 '13 19:12 speccode

I would stick to WordPress standard functions. With WordPress 3.8 there are a lot of new things to consider so I would like to wait some days.

lloc avatar Dec 08 '13 10:12 lloc

I'm afraid that I don't see anything new that could help us here. For posts functionality is ready. Do you want pull request only for it?

speccode avatar Dec 29 '13 16:12 speccode

Yes, let's begin with this.

lloc avatar Dec 29 '13 21:12 lloc