Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I love being able to expose sort options, but I would like to disable the Order: Asc/Desc selectbox.
Comment | File | Size | Author |
---|---|---|---|
#9 | views-948198-9.patch | 3.09 KB | dawehner |
#6 | views-948198-6.patch | 2.93 KB | dawehner |
#5 | views-hide-exposed-sort-order-948198-5.patch | 3.18 KB | Darren Oh |
#3 | views-hide-exposed-sort-order-948198-3.patch | 3.08 KB | Darren Oh |
#1 | 948198-exposed-sort_options.patch | 2.97 KB | dawehner |
Comments
Comment #1
dawehnerSadly the settings are not stored.
Comment #2
dawehnerSelect isn't multiple so this can't work as expected.
Comment #3
Darren OhI just finished a working patch for the Drupal 7 version. This patch will allow each sort use the order from its own settings.
Comment #4
dawehnerThe patch looks great so far, though it would be probably helpful for the sitebuilder to tell here that instead the default order on the sort setting is used.
Comment #5
Darren OhAdditional explanation added.
Comment #6
dawehnerThis looks perfect know, thanks!
Attached a port to d8, so it would be cool if someone would like to test it, else i think there is no reason not to commit it.
Comment #7
aspilicious CreditAttribution: aspilicious commentedWell it uses ctools dependencies?
Comment #8
dawehnerGood spot!
Comment #9
dawehnerThis patch should better wait for the moving of ctools autosubmit.
Comment #10
Darren OhI think the patch from #5 should be committed to the 7.x-3.x branch and ported afterwards.
Comment #11
dawehnerIt got already committed to 7.x-3.x
Comment #12
dawehner.
Comment #13
Darren OhAdded to 7.x-3.x in commit bcd86c0. Thanks!
Comment #14
tim.plunkettLooks good. Didn't conflict.
http://drupalcode.org/project/views.git/commit/7fbec35
Comment #15
tim.plunketthttp://drupalcode.org/project/views.git/commit/7fbec35
Looks good!