1

In a view I need a contextual filter: all nodes with creation date in the current year.

In D7 i was able to provide the current date as default value and set a granularity for the date, e.g. the year.

In D8 I don't have any options to granular configure the filter.

Is there any other solution to set this contextual filter?

3

I think you need to use specific granularity field that you wish to add. like there are multiple option given in contextual filter which are as under.

  • Created year >> Content Date in the form of YYYY.

in that field you can specify in "Provide default value" as "current date".

  • Oh, 'Created year' did it. I used the wrong field. Thank you! – deelite May 3 '16 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.