1

We have a View that displays recently created content of a specific custom type – currently, it's showing the titles of the most recent 3 items. The site requires login, so can identify unique individuals. So how might we get this View to display only the items that are new since a particular user's last login? Or is there another way to display such a content list, other than by Views?

  • Drupal records the last login time, so it should be possible to do so. I'm not sure if there is any existing contributed module that can does it creating a custom module with a custom views handler that returns the users last login time clause should do the job. – AyeshK Mar 18 '16 at 16:48
3

In your view, add a new filter criteria for "Content: Has new content." This should do exactly what you want.

  • 1
    Thanks, that works! I think I had passed over that filter previously because I thought it referred to a particular user's content. In this case we are looking at any new content regardless of creator, and this seems to do it. I also added a No Results message, otherwise the entire View block won't display if there's nothing new to show. – Charles Mar 18 '16 at 18:38
  • Excellent! So glad it worked. – R. Durham Mar 18 '16 at 19:59

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.