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.
Hello,
How to filter quiz by quiz "Close date" using Views?
We need to display all quiz (title, teaser) in a list that ended.
We tried using the "Quiz End Time" filter, but this isn't works for us, because this filters on the quiz results end time (quiz_node_results.time_end).
Thanks in advance.
Comment | File | Size | Author |
---|---|---|---|
#5 | Quiz Open Time.PNG | 17.87 KB | sibinx7 |
#5 | Quiz Close time.PNG | 18.22 KB | sibinx7 |
#5 | Quiz Filter.PNG | 4.15 KB | sibinx7 |
Comments
Comment #1
delykj CreditAttribution: delykj commentedSolved. I modified quiz.views.inc file:
changed:
to:
Comment #2
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commenteddoes
views_handler_filter_date
works with Date popup ? I tried the same trick as you did for one of my recent projects butviews_handler_filter_date
provides only textfield which is not much convenient to us.I added an additional field "quiz status" by implementing custom field and filter. This filter will allow to list quizzes by its status like "any", "In progress" or "Finished".
Comment #3
delykj CreditAttribution: delykj commentedNo, I didn't tried it with popups.
Could you share your custom field and filter?
Comment #4
hlykos CreditAttribution: hlykos commentedsub
Comment #5
sibinx7 CreditAttribution: sibinx7 commentedThank you very much. I was searching for this for last two days. Now everything works fine.
In my project I need to display Exams/Quiz based on Open and Close time.
I added
on the open time also . Now my codes
Comment #6
djdevinThis issue is being closed because it is filed against a version that is no longer supported.