Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit sort options #4802

Closed
jmauzyk opened this issue Aug 22, 2019 · 2 comments
Closed

Limit sort options #4802

jmauzyk opened this issue Aug 22, 2019 · 2 comments
Labels
authoring ✍️ features related to author experience enhancement improvements to existing features

Comments

@jmauzyk
Copy link

jmauzyk commented Aug 22, 2019

Description

Now that 3.2 supports more sortable field types, sort menus on entry indexes have become really long because they include all available fields as a sort option, even though the field isn't visible as a table column or isn't used in that entry type. It would be nice to keep the sort options cleaner. Would it be possible to do one of the following?

  1. Limit the sort options menu to only include default entry properties (title, post date, etc.) and custom fields that are visible as a table column for the current section
  2. Provide fields with an option to opt out of being used in sort menus, similar to the Use this field’s values as search keywords? checkbox

Steps to reproduce

  1. On entry index page, click on sort dropdown
  2. Includes all available sort options

Additional info

  • Craft version: 3.2.10
  • PHP version: 7.2.19
  • Database driver & version: MySQL 5.7.27
@brandonkelly
Copy link
Member

This is a duplicate of #4314 / #4514. We can’t do anything about it without breaking backward compatibility, but we plan to fix for Craft 4.

@brandonkelly
Copy link
Member

I found a non-breaking way to fix this for Craft 3.5 🎉

See #4314 (comment) for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authoring ✍️ features related to author experience enhancement improvements to existing features
Projects
None yet
Development

No branches or pull requests

2 participants