Excluding Book children from a Custom view We have a News site that displays all news articles on the homepage and subpages that display only those items tagged with a certain Taxonomy term.  So for example we have a World News term so going to www.example.net/worldnews will only show those articles with that term.  That works great.

Now we have a request to also filter on Book Content type, so that instead of showing just Article Content nodes we want Article and Book.  For the Homepage we'd use the same sort of filter that we did for Article, and that works well.  However on the subpages, Book parents AND children are showing up.  Is there a way to make sure no children ever show up on the subpages ( but of course would still be accessible the usual way from the parent and siblings )?  I've played around with Contextual Filters but can't quite get it right.

We do have some module code written that uses this View so it may be that I need to go that route and write some code, but would love to see if a View-only solution is possible.
This can be done with Normal filter in views.

Following is the configuration of the filter UI, You need to separate the both content type in the filter with OR and in the Content Type: Book page you need to Book: Depth = 1. 



Now in the following image you can see the Article and Book page titles, First one without Book: Depth =1, Second one with Book: Depth =1.

 

Hence, You can see the views fetches the all articles and only parents books page.