- πΊπΈUnited States j_s
I'm also wondering this but for making a contextual filter for just Year. I want a URL like /myview/2020 where 2020 goes into a Smart Date-based contextual filter and shows results just for 2020. Is this possible yet?
- π¨π¦Canada mandclu
You should be able to accomplish the same thing without custom code by using the granularity options that Smart Date provides.
- πΊπΈUnited States j_s
From what I can see in a Smart Date contextual filter, there are no granularity options. Note that contextual filters are different from regular filters which do have granularity options.
- πΊπΈUnited States mweixel
I too see a need for adding granularity to contextual filters based on Smart Date fields. The addition to the stock filters was incredibly handy, but there are many scenarios where calling the view and supplying a date in the URL is the most straightforward method. Without being able to set granularity, it's impossible to do this.
Is it really that difficult to adapt the granularity from the main filters for use with contextual filters?