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 views month pager doesn't work.
When choosing the plugin in views, the selected plugin doesn't change. This is because the class is not loaded by Drupal's registry, because the file containing the class is not in the info file. The following needs to be added to: views_pager_month.info :
files[] = 'views_pager_month_plugin_pager.inc'
At least, that fixed the module for me.
Comment | File | Size | Author |
---|---|---|---|
#5 | views-plugin-examples-1280208-d7-fixes-5.patch | 4.31 KB | JulienD |
#4 | views-plugin-examples-1280208-d7-fixes-4.patch | 3.91 KB | JulienD |
#2 | views-plugin-examples-1280208-d7-fixes.patch | 1.96 KB | Steven Jones |
Comments
Comment #1
Steven Jones CreditAttribution: Steven Jones commentedActually, this is just one of many issues...I'll come back with a patch that brings the views month pager up-to-date.
Comment #2
Steven Jones CreditAttribution: Steven Jones commentedThe following patch gets it working for me.
Comment #3
Steven Jones CreditAttribution: Steven Jones commentedThe example is completely broken at the moment, so this is critical (in the context of this project).
Comment #4
JulienD CreditAttribution: JulienD commentedHi,
I tried to fix the problem and I found some mistakes. The fourth parameter of the format_date function should not be 0 but NULL and if $timezone is set to NULL, the default timezone is used by the function.
I used drupal_get_query_parameters($_GET, array('q')); instead of drupal_query_string_encode($input, array()) to get parameters from the url.
At this point the code doesn't seems to work but we are closer.
Comment #5
JulienD CreditAttribution: JulienD commentedI fixed the example, the probleme came from a bad implementation of the condition on the query. I also updated the module to work on Drupal 7.
I redid my patch from the root of the project.