1

I am very new to Drupal and now I am trying to build some small website to try different things out.

I made my website's homepage a Panel, and in it there is a "Promoted News" View, and under this view there is a "Latest News" View.

I want to be able to exclude from "Latest News" any news item that appears in "Promoted News".

Is that possible to do without having to write code? And if not, how can it be achieved?

1 Answer 1

1

So you have 2 views: "Promoted News", and "Latest News" View.

To exclude any view results ('items' as you call them) from "Latest News", add a 'filter' in that view with as criteria the opposite (negation) of the 'filter' criteria that are used in your "Promoted News" views.

E.g. if "Promoted News" is implemented with a filter like "published to frontpage", then in "Latest News" the filter o be added should be "NOT promoted to frontpage".

Note: If you're new to Drupal, you might also want to review the set of 30 video tutorials about the Views module to become more familiar with the Views module.

4
  • Note: this won't work with random order and limit. So if view is configured to show random 5 out of 8 promoted news, op will still have a problem.
    – Mołot
    Aug 22, 2015 at 22:59
  • @Mołot do you have any suggestion? Aug 24, 2015 at 6:55
  • @JosephSaba some, but if you need to solve that specific situation, ask new question.
    – Mołot
    Aug 24, 2015 at 6:57
  • this answer does not really solve the problem, if you want eg. the 6 latest articles for a gallery, but only the ones promoted to the frontpage and in another view, all articles, but not the ones shown in the view above, it does not mean automatically, the older articles with promoted to the frontpage should not appear...
    – sinini
    Dec 16, 2015 at 12:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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