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.
The CCK duration field appears to lack some Views support. It can be added as a field to Views but is not available in Views 'Sort Criteria'.
The original developer notes that "the database table does include the necessary information ("approx_seconds"
column), but if there's no sortable field then I guess I just haven't worked on Views support."
Comment | File | Size | Author |
---|---|---|---|
#2 | duration-494612.patch | 733 bytes | reubenavery |
Comments
Comment #1
mr.andrey CreditAttribution: mr.andrey commentedsubscribing...
Comment #2
reubenavery CreditAttribution: reubenavery commentedHi all,
Here's a patch for duration.module that adds sorting to Views 2
Comment #3
reubenavery CreditAttribution: reubenavery commentedComment #4
tribe_of_dan CreditAttribution: tribe_of_dan commentedThis might be your answer: http://drewish.com/node/127
Comment #5
keinstein CreditAttribution: keinstein commented@tribe_of_dan: The answer #2 seems to be much better.
Comment #6
Kanwal-1 CreditAttribution: Kanwal-1 commentedThis patch is not working.
Any other solution please?
Thanks
Kanwal