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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steven Jones’s picture

Assigned: Unassigned » Steven Jones

Actually, this is just one of many issues...I'll come back with a patch that brings the views month pager up-to-date.

Steven Jones’s picture

Status: Active » Needs review
FileSize
1.96 KB

The following patch gets it working for me.

Steven Jones’s picture

Priority: Major » Critical

The example is completely broken at the moment, so this is critical (in the context of this project).

JulienD’s picture

Status: Needs review » Needs work
FileSize
3.91 KB

Hi,

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.

format_date($current_page, 'custom', 'M Y', NULL);

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.

JulienD’s picture

Status: Needs work » Needs review
FileSize
4.31 KB

I 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.