Skip to main content
added 20 characters in body
Source Link

What I have done

  1. I have created a view.
  2. I have added a content type to display .
  3. I have added a filter to filter by node date content and have opted to display the post date as year in the filter.

What I want actually

I wanted to display only the years that have content. I am using Drupal 7.

Which are the ways to do this?

What I have done

  1. I have created a view.
  2. I have added a content type to display .
  3. I have added a filter to filter by node date content and have opted to display the post date as year in the filter.

What I want actually

I wanted to display only the years that have content.

Which are the ways to do this?

What I have done

  1. I have created a view.
  2. I have added a content type to display .
  3. I have added a filter to filter by node date content and have opted to display the post date as year in the filter.

What I want actually

I wanted to display only the years that have content. I am using Drupal 7.

Which are the ways to do this?

Source Link

How to display only the years that have content in view filter?

What I have done

  1. I have created a view.
  2. I have added a content type to display .
  3. I have added a filter to filter by node date content and have opted to display the post date as year in the filter.

What I want actually

I wanted to display only the years that have content.

Which are the ways to do this?