How to remove the exception parameter of a View's contextual filter?

by Yaazkal   Last Updated November 14, 2017 21:07 PM

in Drupal 7 I have a View with two contextual filters (date field):


When YEAR is the first argument and if there is none I make a Summary of the view, so the result can be something like:

* 2017
* 2016
* 2015

And MONTH is the second parameter, that if it's not present, the view also makes a Summary:

* January
* February
* ...

I think that I'm stuck replicating the same View in Drupal 8, because the first Summary has a default parameter "all" wich is the exception of the second parameter.

  1. Is there a way to remove that default exception parameter from the url of the first summary? (I'm getting view-url/YEAR/all for each year of the list as its url).
  2. Can I expose YEAR and MONTH so people can easily navigate trough the view?

Also if there is a better way to built that kind of view (like better performance) I'll apreciate the advice.

Related Questions

Exposed filters go to request arguments

Updated June 04, 2015 02:03 AM

How to alter combined filter value programatically?

Updated March 27, 2015 14:18 PM

How to set up this view of commerce orders...?

Updated January 11, 2017 10:03 AM