qpixel icon indicating copy to clipboard operation
qpixel copied to clipboard

Support native/imported/all in filters, for sites with imported content

Open cellio opened this issue 2 years ago • 0 comments

Prompted by, but not exactly, meta:289139 and meta:289141 .

A few communities support imported content, and those communities have an extra sorting button on the category page for "native". It's actually a sort, not a filter, but the user expects a filter. Now that we have filters, can we fold it in there?

The presence of the button is controlled by this logic:

    <% if SiteSetting['AllowContentTransfer'] %>
      <%= link_to 'Native', request.params.merge(sort: 'native'),
                  class: "button is-muted is-outlined #{params[:sort] == 'native' ? 'is-active' : ''}",
                  title: 'exclude imported posts' %>
    <% end %>

On sites with imported content only, could the filters widget add a control with a drop-down menu for native, imported, any, like this? This is similar to the Status field for open, closed, any.

native-mockup

cellio avatar Nov 26 '23 23:11 cellio